Support

Home Forums Event Espresso Premium How to remove the "New @ Event Espresso" meta box

How to remove the "New @ Event Espresso" meta box

Posted: December 17, 2014 at 10:01 pm

Viewing 2 reply threads


ac

December 17, 2014 at 10:01 pm

Hi,

I’m trying to remove the “New @ Event Espresso” meta box. I can use “Screen Options” but as soon the page is refreshed the meta box is back.

Thanks


Josh

  • Support Staff

December 18, 2014 at 9:28 am

Hi there,

You can use the WordPress remove_meta_box function to remove a meta box. Here’s an example of how to use this function to remove the Event Espresso 4 news metabox:

function remove_ee_plugin_metaboxes(){
    $current_screen = get_current_screen();
    remove_meta_box( 'espresso_news_post_box', $current_screen->base, 'side' );
}
add_action( 'admin_head', 'remove_ee_plugin_metaboxes' );

The above code can be placed in a custom snippets plugin.


ac

December 18, 2014 at 1:46 pm

Thanks that worked!

Viewing 2 reply threads

The support post ‘How to remove the "New @ Event Espresso" meta box’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso