Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
PHP: Fix CalendarizeIt's enqueuing scripts everywhere
add_action( 'wp_enqueue_scripts', 'gs_calendarizeit_remove_scripts', 999 );
function gs_calendarizeit_remove_scripts() {
if ( gs_is_field_trip() || 'events' === get_post_type( get_the_ID() ) ) return;
$scripts = array(
foreach( $scripts as $s )
wp_dequeue_script( $s );
$styles = array(
foreach( $styles as $s )
wp_dequeue_style( $s );

This comment has been minimized.

Copy link

brianjking commented Jul 7, 2015

@wpsmith -- Is this still required with the current version of

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.