Posted on November 27, 2022 , Last Modified on: November 27, 2022
Add New Topic button to bbpress
//Start New Topic Button BBPress // add_action ( 'bbp_template_before_single_forum', 'new_topic_button' ) ; function new_topic_button () { if ( bbp_current_user_can_access_create_topic_form() && !bbp_is_forum_category() ) { $text=__('Create New Topic') ; $href = apply_filters ('new_topic_button' , '#new-post' ) ; echo ''.$text.'' ; } } //End New Topic Button BBPress //
Add above function to your bp-custom.php file. It will add a New Topic button to the forum-loop. Super simple and effictive. You can then customize it with css with the class .new_topic_button #bbpress #new-topic-button