-
-
Save brianjking/e5bb5603a2d063637fb5 to your computer and use it in GitHub Desktop.
The Events Calendar - Load Tribe Bar Script on Single Events
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
/* | |
* The Events Calendar - Load Tribe Bar Script on Single Events | |
* @version 3.11.1 | |
*/ | |
add_action( 'template_redirect', 'tribe_admin_bar_script' ); | |
function tribe_admin_bar_script() { | |
if ( is_singular( 'tribe_events' ) ) { | |
add_filter( 'tribe-events-bar-should-show', '__return_true' ); | |
//wp_enqueue_script( 'tribe-events-bar' ); | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment