Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bbPress - Add Forum Form to Moderators User Profile Home
<?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