Skip to content

Instantly share code, notes, and snippets.

@sidharrell
Last active August 29, 2015 13:56
Show Gist options
  • Save sidharrell/9194830 to your computer and use it in GitHub Desktop.
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
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