• Hello I am using wordpress 5.2.2 in which remove_meta_box function is not working.
    I got the problem but want solution from you. Problem is the classes not rendering as previous. .i.e. previously for category div – ‘categorydiv’ this was there as ID of the element. But its not coming now. Every thing is in class ‘components-panel’.
    Please provide new functions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Can you provide your code that’s not working?

    Thread Starter aartikmundrisoft

    (@aartikmundrisoft)

    function remove_my_post_metaboxes() {

    remove_meta_box( ‘categorydiv’,’post’,’normal’ ); // Categories Metabox
    remove_meta_box( ‘tagsdiv-post_tag’,’post’,’normal’ ); // Tags Metabox
    }

    add_action(‘admin_menu’,’remove_my_post_metaboxes’);

    Thread Starter aartikmundrisoft

    (@aartikmundrisoft)

    its not working in wordpress 5.2.2
    I think it is because of new editor

    In file wp-admin/includes/meta-boxes.php all metaboxes sill added via function add_meta_box(), but remove_meta_box() just doesn’t remove metaboxes, which are default (postimagediv, categorydiv, etc.).

    P.S the custom metaboxes are safely removed by this function.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘remove_meta_box not working for latest version of wordpress’ is closed to new replies.