Skip to content

Instantly share code, notes, and snippets.

@sidharrell
Created December 31, 2013 06:09
Show Gist options
  • Select an option

  • Save sidharrell/8193255 to your computer and use it in GitHub Desktop.

Select an option

Save sidharrell/8193255 to your computer and use it in GitHub Desktop.
fix for attednee_numbers shortcode to make it work independent of specific event id (REM)
function espresso_attendees_data_sc($atts) {
global $wpdb, $org_options, $this_event_id;
extract(shortcode_atts(array('event_id' => $this_event_id, 'type' => ''), $atts));
$event_id = "{$event_id}";
$type = "{$type}";
$data = get_number_of_attendees_reg_limit($event_id, $type);
return $data;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment