Home / functions.php / Remove custom fields metabox
  • How to Remove custom fields metabox

    no thumbnail sorry: Remove custom fields metabox

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

    wordpress snippet : PHP

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

    ( WordPress codex functions, hooks, in this snippet. )

    admin_menu, remove_meta_box, add_action,