[wp-hackers] remove boxes

Paul paul at codehooligans.com
Wed Apr 27 19:16:09 UTC 2011


On Apr 27, 2011, at 3:12 PM, Leo Baiano wrote:

> Does anyone know how I can remove the boxes that appear on the page to add a
> newpost? The boxes that I speak are those that appear on the right side,
> for example "categories ", tags, image highlight "... I also refer to the
> boxes that appear below thepost field," summary "," custom fields "and
> others that are inserted through plugin orCPT.
> 
> I tried using the function remove_page_menu, without success, do not know
> whichparameter to indicate to remove the menus.


If you are referring to the Category and Tags boxes you need to call remove_meta_box. Look it up. 


function remove_default_categories_box() {
    remove_meta_box('categorydiv', 'post', 'side');
}
add_action( 'admin_head', 'remove_default_categories_box' );

Actually just found how to do this a week ago. Glad to share. 

P-



More information about the wp-hackers mailing list