wordpress snippets last updated   : August 18, 2014
we now have 638 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!

jqsnipp.com | we just launched jquery snippets website