Description
The gravityflow_reverse_comment_order_discussion_field filter allows the order of the discussion field comments to be reversed.
Parameters
Parameter | Type | Details |
---|---|---|
$reverse_comment_order | Boolean | Should the comment order be reversed? Default is false. |
$field | Field | The field currently being processed. |
$format | String | The requested format for the value; html or text. |
Examples
Reverse the comment order
1 2 3 4 | add_filter( 'gravityflow_reverse_comment_order_discussion_field' , 'sh_gravityflow_reverse_comment_order_discussion_field' , 10, 3 ); function jo_gravityflow_feedback_cancel_workflow( $reverse_comment_order , $field , $format ) { return true; } |
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?