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 | |
/** | |
* Function that runs when the shortcode pf_show_event_form is called | |
* @return string | |
*/ | |
function pf_show_event_form() { | |
if (!is_singular('event')){ | |
// This should only ever be called on a event page | |
return ''; |