Description
Filter the ORDER BY statement for the item request SQL query.
Usage
apply_filters( 'wp_data_sync_item_request_sql_order_by', $order_by, $post_type );
Parameters
$order_by | string | The SQL ORDER BY statement | $post_type | string | The post type name |
Code Example
add_filter( 'wp_data_sync_item_request_sql_order_by', function( $order_by, $post_type ) {
//Do cool stuff here!!
return $order_by;
), 10, 2 );
Contact us if you need a code example for this hook. We are happy to review your request.