Home / functions.php / Remove custom fields metabox
  • 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' );

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

    admin_menu, remove_meta_box, add_action,

Build a better with wpsnipp.com

Weekly snippets, themes, deals coupons roundup.

x No Thanks