Description
The gravityflow_inbox_items_per_page_default filter allows changing the default items per page count for all inboxes.
Parameters
Parameter | Type | Details |
---|---|---|
$page_count | Integer | The rows per page for all inboxes. Default is 20. |
Examples
Allow 50 results per page for inbox on a specific page
1 2 3 4 5 6 7 8 9 | add_filter( 'gravityflow_inbox_items_per_page_default' , 'sh_gravityflow_inbox_count' ); function sh_gravityflow_inbox_count( $page_count ){ global $post ; if ( isset( $post ->ID ) && $post ->ID == '711' ) { $page_count = 50; } return $page_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?