wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Remove custom fields metabox

wordpress snippet

Adding this PHP code to your functions.php of your wordpress theme will remove the custom fields metabox from pages within your wordpress admin.

snippet :  PHPcopy
function remove_default_page_screen_metaboxes() {
       remove_meta_box( 'postcustom','post','normal' );
}
   add_action('admin_menu','remove_default_page_screen_metaboxes');

Did you like this post? If so please share it with your friends. Thanks!