Remove Meta Box Marketpress Settings

I'm trying to remove the advanced settings meta box on the marketpress general settings screen.

I can't get this to work:

function remove_marketpress_meta_boxes() {
    remove_meta_box( 'mp-settings-general-advanced-settings' , array( 'store-settings', 'toplevel_page_store-settings' ) , 'advanced' ); 

}
add_action('do_meta_boxes', 'remove_marketpress_meta_boxes');

I've tried multiple other hooks and multiple other combinations of function parameters. I've browsed the forums and didn't find the answer. I'm out of ideas.

  • Ash
    • WordPress Hacker

    Hello Justin

    Please try the following:

    function remove_marketpress_meta_boxes() {
        remove_meta_box( 'mp-settings-general-advanced-settings' , MP_Product::get_post_type(), 'advanced' );
    }
    add_action('admin_menu', 'remove_marketpress_meta_boxes');

    If it doesn't work, try replacing 'advanced' with 'normal' or 'side'.

    Hope it helps! Please feel free to ask more questions if you have any.

    Have a nice day!

    Cheers,
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.