Created
December 31, 2013 06:09
-
-
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)
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
| 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