Remove custom fields metabox

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

 

 

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

Leave a comment