Description
The gravityflow_entry_count_step_list filter allows developers to control whether the entry count column is displayed in the Gravity Flow step list.
Usage
add_filter( 'gravityflow_entry_count_step_list', 'your_callback_function', 10, 1 );
Parameters
| Parameter | Type | Description |
|---|---|---|
| $show_count | bool | Whether to show the entry count column. Default is true |
Examples
Hide the entry count column for all users.
add_filter( 'gravityflow_entry_count_step_list', '__return_false' );
Conditionally show the entry count column for admins.
add_filter( 'gravityflow_entry_count_step_list', function( $show_count ) {
// Returns entry count only for admin users
return current_user_can( 'manage_options' );
});
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?
Source Code
This filter is located in gravityflow/class-gravity-flow.php