Remove meta boxes for Pages and Posts
-
Topic
-
I have a question about a section in the documentation titled “Remove meta boxes for Pages and Posts“. I added the code below to my child theme functions file and the meta data (post date, author, category, comment count) is still at the top of the post.
function remove_meta_boxes( $setup ) { $setup['meta']['pages'] = false; $setup['meta']['posts'] = false; return $setup; } add_filter( 'themeblvd_global_config', 'remove_meta_boxes' );
1) Is there something else I need to do in order to remove the post meta?
2) Can this work for custom post types as well? For example?
$setup['meta']['services'] = false;
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.