Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @Add a new column header in dashboard table
- * @param array $args dashboard query arguments
- * @return void
- */
- function wpufe_dashboard_add_comment_head( $args ) {
- printf( '<th>%s</th>', __( 'Comments', 'wpuf' ) );
- }
- add_action( 'wpuf_dashboard_head_col', 'wpufe_dashboard_add_comment_head', 10, 2 );
- /**
- *
- * Display comment count on the row
- *
- */
- function wpufe_dashboard_row_col_comment( $args, $post ) {
- ?>
- <td>
- <?php
- echo $post->comment_count;
- ?>
- </td>
- <?php
- }
- add_action( 'wpuf_dashboard_row_col', 'wpufe_dashboard_row_col_comment', 10, 2 );
Add Comment
Please, Sign In to add comment