Last active
August 29, 2015 14:05
-
-
Save jchristopher/c4e8c328f4a88c9ac605 to your computer and use it in GitHub Desktop.
Add a 'flag' div around the topic creation form in bbPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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