Filter: RML/Sortable/PostsClauses

apply_filters( 'RML/Sortable/PostsClauses', $pieces, $query, $folder ) → {array}

(Pro only) Modify the filter expression for the sortable content. You can str_replace the "rmlorder.nr" for the main order column. Use this filter in conjunction with RML/Sortable/Ids so you can modify the ids for the content order process.

Parameters:
Name Type Description
$pieces array

The list of clauses for the query

$query WP_Query

The WP_Query instance

$folder IFolder

The folder to query

Since:
  • 4.0.8
See:
Returns:

$pieces

Type
array