Leave a comment

Remove New Topic Button For Subscribers

If your an admin using BuddyPress and bbpress and you only want
admins to create new topics then use the code below. Place it in
bp-custom.php if you do not want to display the “New Topic Button”
for subscribers. Admins only will see it.

function bphelp_hide_new_topic_button() {
if ( ! current_user_can( 'edit_others_topics' ) ) {
?>

a#new-topic-button {
display: none !important;
}

<?php
}
}
add_action ('bp_head', 'bphelp_hide_new_topic_button');

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: