Created
August 20, 2014 17:56
-
-
Save ckpicker/7bc941f32f1abdb1c241 to your computer and use it in GitHub Desktop.
Events Calendar 3.7 // Hook into 'tribe_events_inside_before_loop' action to display custom text for list view
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
add_action( 'tribe_events_inside_before_loop', 'output_custom_code' ); | |
function output_custom_code() { | |
//Check if displaying list view | |
if( tribe_is_upcoming() ) { | |
echo 'Your custom code to display.'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment