Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Last active January 7, 2019 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pebblo/ed0af384f64095609855f18995083e38 to your computer and use it in GitHub Desktop.
Save Pebblo/ed0af384f64095609855f18995083e38 to your computer and use it in GitHub Desktop.
A function to change the default 'limit' value of the [ESPRESSO_EVENT_ATTENDEES] shortcode
<?php //Please do not include the opening PHP tag if you alread have one
add_filter('EES_Espresso_Event_Attendees__process_shortcode__default_shortcode_atts', 'tw_espresso_event_attendees_shortcode_atts');
function tw_espresso_event_attendees_shortcode_atts( $attrs ) {
$attrs['limit'] = 250;
return $attrs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment