SHARE
TWEET

Remove New Topic Button For Subscribers

bphelp Mar 25th, 2013 106 Never
  1. <?php
  2.     function bphelp_hide_new_topic_button() {
  3.         if ( ! current_user_can( 'edit_others_topics' ) ) {
  4.     ?>
  5.     <style type="text/css">
  6.         a#new-topic-button {
  7.                 display: none !important;
  8.         }
  9.      
  10.     </style>
  11.     <?php
  12.         }
  13.     }
  14.     add_action ('bp_head', 'bphelp_hide_new_topic_button');
  15.     ?>
RAW Paste Data
Top