Skip to content

Instantly share code, notes, and snippets.

@kyleunzicker
Created August 13, 2013 21:37
Show Gist options
  • Save kyleunzicker/6225952 to your computer and use it in GitHub Desktop.
Save kyleunzicker/6225952 to your computer and use it in GitHub Desktop.
function remove_woo_styles_on_tribe_admin_screen(){
global $current_screen;
if ( isset($current_screen->post_type) &&
($current_screen->post_type == 'tribe_events' || $current_screen->id == 'settings_page_tribe-settings')
) {
wp_deregister_style('woocommerce_admin_styles');
}
}
add_action( 'admin_enqueue_scripts', 'remove_woo_styles_on_tribe_admin_screen' );
@orgspring
Copy link

Dude, this was a lifesaver. Thanks.
How did you figure out it was woo admin styles kicking this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment