Description
The gravityflow_discussion_items_display_toggle filter determines whether to show/hide the toggle to display more discussion items.
Parameters
Parameter | Type | Details |
---|---|---|
$hide_toggle | Boolean | Whether to prevent the display more toggle from displaying. Defaults to true. |
$discussion_field | Field | The field currently being processed. |
Examples
Always hide the toggle
add_filter( 'gravityflow_discussion_items_display_toggle', 'sh_gravityflow_discussion_toggle', 10, 2 );
function gravityflow_discussion_items_toggle( $toggle, $discussion ) {
return false;
}
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?