gravityflow_inbox_count_display
The gravityflow_inbox_count_display filter allows the inbox count display to be enabled or disabled
![]() |
![]() |
Parameters
Parameter | Type | Definition |
---|---|---|
display |
Boolean | Whether to display the inbox count or not |
Examples
Example 1 - Always disable the inbox count
add_action( 'gravityflow_inbox_count_display', '__return_false', 10, 1 );
Example 2 - Conditionally show/hide the inbox count
add_action( 'gravityflow_inbox_count_display', 'jo_inbox_count_display', 10, 1 );
function jo_inbox_count_display( $display ) { //Add your crtieria to modify $display to be true/false whether you want the count to show/hide return $display; }
Placement
This code should be placed in the functions.php file of your active theme or in a custom functions plugin.