Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

Remove New Topic Button For Subscribers

By: bphelp on Mar 25th, 2013  |  syntax: None  |  size: 0.33 KB  |  views: 94  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.     ?>