Filter: RML/Filter/PostsClauses

apply_filters( 'RML/Filter/PostsClauses', $clauses, $query, $folderId, $root ) → {array}

Do a filter to restrict the RML posts clauses and apply an own clauses modifier. If you want to use your own implementation of posts_clauses you can add this code to to restrict the RML standard posts_clauses: $clauses["_restrictRML"] = true;
Parameters:
Name Type Description
$clauses array The list of clauses for the query
$query WP_Query The WP_Query instance
$folderId int The folder ID to query (0 = 'All files')
$root int The root folder ID, see also RML/RootParent
See:
Returns:
$clauses
Type
array