Guest User

Untitled

a guest
Jul 13th, 2012
283
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     add_action('init', 'bbpress_hide_sidebar');
  3.    
  4.     function bbpress_hide_sidebar(){
  5.         if( is_bbpress() ) {
  6.             unregister_sidebar( $sidebar_id );
  7.         }
  8.     }
  9. ?>
RAW Paste Data