Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('widget_display_callback', 'increase_event_widget_limit', 10, 2);
- /**
- * Test if the current widget is an Advanced List Widget and fix the
- * event limit if so.
- */
- function increase_event_widget_limit(array $instance, $widget) {
- if (is_a($widget, 'TribeEventsAdvancedListWidget'))
- $instance['limit'] = 30;
- return $instance;
- }
Advertisement
Add Comment
Please, Sign In to add comment