Last active
August 29, 2015 13:56
-
-
Save sidharrell/9194830 to your computer and use it in GitHub Desktop.
override ESPRESSO_REG_FORM shortcode function as patch to no price, time selector on CPT single event template
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
function espresso_reg_form_sc($atts) { | |
wp_enqueue_script('validation'); //This tells the plugin to load the required scripts | |
extract(shortcode_atts(array('event_id' => '0'), $atts)); | |
$event_id = "{$event_id}"; | |
ob_start(); | |
register_attendees(NULL, $event_id, false); | |
$buffer = ob_get_contents(); | |
ob_end_clean(); | |
return $buffer; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment