Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/c4e8c328f4a88c9ac605 to your computer and use it in GitHub Desktop.
Save jchristopher/c4e8c328f4a88c9ac605 to your computer and use it in GitHub Desktop.
Add a 'flag' div around the topic creation form in bbPress
<?php
// 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() { ?>
</div>
<?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