Created
April 15, 2014 04:02
-
-
Save ntwb/10701087 to your computer and use it in GitHub Desktop.
bbPress - Add Forum Form to Moderators User Profile Home
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 | |
/* | |
Plugin Name: bbPress - Add Forum Form to Moderators User Profile Home | |
Plugin URI: https://gist.github.com/ntwb/10701087 | |
Description: bbPress - Add Forum Form to Moderators User Profile Home | |
Version: 0.1 | |
Author: Stephen Edgar - Netweb | |
Author URI: http://netweb.com.au | |
*/ | |
function ntwb_bbp_forum_form() { | |
if ( bbp_is_user_home() && current_user_can( 'moderate' ) ) { | |
echo do_shortcode( '[bbp-forum-form]' ); | |
} | |
} | |
add_action( 'bbp_template_after_user_profile', 'ntwb_bbp_forum_form' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment