gravityflow_reverse_comment_order_discussion_field

The gravityflow_reverse_comment_order_discussion_field filter allows the order of the discussion field comments to be reversed.

Parameters

Parameter Type Definition
$reverse_comment_order Bool Should the comment order be reversed? Default is false.
$field Field object The field currently being processed.
$format Format The requested format for the value; html or text.

Examples

Example 1 - Reverse the comment order

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 should be placed in the functions.php file of your active theme or in a custom functions plugin.