BBP_Forums_Admin::column_data( string $column, int $forum_id )
Print extra columns for the forums page
Description
Parameters
- $column
-
(Required) Column
- $forum_id
-
(Required) Forum id
Source
File: bp-forums/admin/forums.php
public function column_data( $column, $forum_id ) { if ( $this->bail() ) return; switch ( $column ) { case 'bbp_forum_topic_count' : bbp_forum_topic_count( $forum_id ); break; case 'bbp_forum_reply_count' : bbp_forum_reply_count( $forum_id ); break; case 'bbp_forum_created': printf( '%1$s <br /> %2$s', get_the_date(), esc_attr( get_the_time() ) ); break; case 'bbp_forum_freshness' : $last_active = bbp_get_forum_last_active_time( $forum_id, false ); if ( !empty( $last_active ) ) echo esc_html( $last_active ); else esc_html_e( 'No Discussions', 'buddyboss' ); break; default: do_action( 'bbp_admin_forums_column_data', $column, $forum_id ); break; } }
Changelog
Version | Description |
---|---|
bbPress (r2485) | 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.