gravityflow_inbox_items_per_page_default

Description

The gravityflow_inbox_items_per_page_default filter allows changing the default items per page count for all inboxes.

Parameters

ParameterTypeDetails
$page_countIntegerThe rows per page for all inboxes.
Default is 20.

Examples

Allow 50 results per page for inbox on a specific page

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?