How to change the column titles?

Replies
1
Voices
2
Freshness
Followers

0

Hi, in your docs you write that I can easily change the column titles by replacing the default titles, but where do I do this? Where do I find these default titles?

function myprefix_change_ctdb_titles( $titles ) {
  $titles['started'] = 'Posted';
  return $titles;
}
add_filter( 'ctdb_topic_titles', 'myprefix_change_ctdb_titles' );

The default titles are:

$titles = array(
 'avatar' => '',
 'topic' => __( 'Topic', 'discussion-board' ),
 'replies' => __( 'Replies', 'discussion-board' ),
 'started' => __( 'Since', 'discussion-board' ),
 'posted-by' => __( 'Posted by: ', 'discussion-board' ),
);
  • Hey Robert,

    Thanks for using WP Discussion Board! You will need to add the code on the functions.php file found on your child-theme's directory. We highly suggest to have your child theme. This means you’ll still benefit from the update, but your changes will remain.

    Hope that helps. If you have any questions, please let me know!

    Thanks,
    - WP Discussion Support