Description
The gravityflow_event_limit_activity_page filter allows the limit for events to be modified before events are displayed on the activity page.
Parameters
Parameter | Type | Details |
---|---|---|
$event_count | Integer | The limit of events. Default is 400. |
Examples
Limit events displayed on the activity page to 5.
1 2 3 4 5 | add_filter( 'gravityflow_event_limit_activity_page' , 'limit_events' , 10, 2 ); function sh_gf_menu( $event_count ) { $event_count = 5; return $event_count ; } |
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?