Events Calendar for LearnDash Filters Documentation - Honors WP
Filters

Limit the Number of Events Shown on the Events Calendar for LearnDash:

add_filter(‘immerseus_calendar_map_calendar_events_query_max_events’, function( $amount_of_events, $user_id ) {
$amount_of_events = 10;

// Check for a specific user id
if( 1 === $user_id ) {
$amount_of_events = 10000000;
}
// Always return.
return $amount_of_events;
}, 2, 10);

add_filter(‘immerseus_calendar_map_calendar_events_query_max_events’, function( ) {
return 1;
});

Leave a Reply

Your email address will not be published.

  • Your cart is empty.
Shopping Cart
  • Your cart is empty.
Scroll to Top