Created
December 9, 2014 09:43
-
-
Save thecodepoetry/42de80e09e38258b54e5 to your computer and use it in GitHub Desktop.
Compatibility fix for tribe event calender plugin
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
add_action( 'get_header', 'tribe_event_fix', 10 ); | |
function tribe_event_fix() { | |
if ( 'tribe_events' == get_post_type() ) { | |
$config = Presscore_Config::get_instance(); | |
presscore_config_base_init(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use this in your functions.php