gppa_query_order_by_clauses

  1. Description
  2. Usage
  3. Parameters
  4. Since

Description

Filter the order clauses assigned to a query.

Usage

add_filter( 'gppa_query_order_by_clauses', 'my_custom_function' );

Filter query order to process with extra Ordering sequences:

add_filter( 'gppa_query_order_by_clauses', function( $order_clauses, $query_args, $field ) {
    // Add second ordering
    $order_clauses[] = 'Column B ASC';

    // Add third ordering
    $order_clauses[] = 'Column C DESC';

    return $order_clauses;
}, 10, 3 );

Parameters

  • order_clauses array

    Order Clauses.

  • query_args array

    The current form.

  • field \GF_Field

    The current field.

Since

This filter is available since Gravity Forms Populate Anything 2.1.18.