Skip to content

Instantly share code, notes, and snippets.

@juanfra
Last active March 13, 2019 13:44
Show Gist options
  • Save juanfra/0e7ad5a0037270f5ec0b01acf47b169d to your computer and use it in GitHub Desktop.
Save juanfra/0e7ad5a0037270f5ec0b01acf47b169d to your computer and use it in GitHub Desktop.
<?php
$tribe_class = Tribe__Main::instance();
$priority_load_localize = has_action( 'init', array( $tribe_class, 'load_localize_data' ) );
remove_action( 'init', array( $tribe_class, 'load_localize_data' ), $priority_load_localize );
$priority_footer = has_action( 'wp_footer', array( $tribe_class, 'toggle_js_class' ) );
remove_action( 'wp_footer', array( $tribe_class, 'toggle_js_class' ), $priority_footer );
add_action( 'init', 'custom_remove_underscores' );
function custom_remove_underscores() {
remove_filter( 'script_loader_tag', array( tribe( 'assets.pipeline' ), 'prevent_underscore_conflict' ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment