BP_Admin::emails_display_situation_column_data( string $column = '', int $post_id )
Output column data for our custom ‘Situations’ column.
Description
Parameters
- $column
-
(Optional) Current column name.
Default value: ''
- $post_id
-
(Required) Current post ID.
Source
File: bp-core/classes/class-bp-admin.php
public function emails_display_situation_column_data( $column = '', $post_id = 0 ) { if ( 'situation' !== $column ) { return; } // Grab email situations for the current post. $situations = wp_list_pluck( get_the_terms( $post_id, bp_get_email_tax_type() ), 'description' ); // Output each situation as a list item. echo '<ul><li>'; echo implode( '</li><li>', $situations ); echo '</li></ul>'; }
Changelog
Version | Description |
---|---|
BuddyPress 2.6.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.