Last active
March 13, 2019 13:44
-
-
Save juanfra/0e7ad5a0037270f5ec0b01acf47b169d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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