apply_filters( 'RML/Order/Orderby', $orders ) → {Array.<object>}
Add an available order criterium to folder content. If you pass user input to the SQL Order please be sure the values are escaped!
Parameters:
Name | Type | Description |
---|---|---|
$orders |
Array.<object> | The available orders |
Returns:
- Type
- Array.<object>
Example
$orders["id_asc"] = [
"label" => __("Order by ID ascending", RML_TD),
"sqlOrder" => "wp.ID"
)