Removing meta boxes from post edit screens
-
I found an old thread with a code snippet showing how to hide the meta boxes, if like me, you like to de-clutter the admin screens for clients. This code no longer works though, so I’ve updated it, and sharing it below in case anyone searches for a solution:
function remove_share_box() { remove_meta_box('A2A_SHARE_SAVE_meta', 'post', 'side'); remove_meta_box('A2A_SHARE_SAVE_meta', 'page', 'side'); } add_action( 'add_meta_boxes' , 'remove_share_box', 40 );
Note the change of location from ‘advanced’ to ‘side’ that prevented the old snippet from working. I also added a line to remove from posts, not just pages.
H/T to @konsument on the old thread
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Removing meta boxes from post edit screens’ is closed to new replies.