daily pastebin goal
59%
SHARE
TWEET

Force list widget to show 15 events

BakerMan Jan 13th, 2014 151 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter( 'widget_display_callback', 'force_list_widget_to_show_15', 10, 2 );
  2.  
  3. function force_list_widget_to_show_15( $instance, $widget ) {
  4.         if ( 'tribe-events-adv-list-widget' !== $widget->id_base ) return $instance;
  5.         $instance['limit'] = 15;
  6.         return $instance;
  7. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top