Last active
July 2, 2019 07:56
-
-
Save elimn/50cc4ac8b56cc2809bbc48e7c7e3b461 to your computer and use it in GitHub Desktop.
MT | TEC | Remove the Tribe Customier css <script> from footer
This file contains 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 | |
/** | |
* Remove the Tribe Customier css <script> | |
*/ | |
function tribe_remove_customizer_css(){ | |
if ( class_exists( 'Tribe__Customizer' ) ) { | |
remove_action( 'wp_print_footer_scripts', array( Tribe__Customizer::instance(), 'print_css_template' ), 15 ); | |
} | |
} | |
add_action( 'wp_footer', 'tribe_remove_customizer_css' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This doesn't work anymore with the new version of Events Calendar (4.6.x) using tribe_asset() function to load all assets.