Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add a 'flag' div around the topic creation form in bbPress
// implement forum pre-search before allowing for topic creation
function searchwp_bbp_theme_before_topic_form() { ?>
<div class="searchwp-pre-ticket-hide">
<?php }
add_action( 'bbp_theme_before_topic_form', 'searchwp_bbp_theme_before_topic_form' );
function searchwp_bbp_theme_after_topic_form() { ?>
<?php }
add_action( 'bbp_theme_after_topic_form', 'searchwp_bbp_theme_after_topic_form' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.