Recent

top_ten_query_posts_orderbyfilter

top_ten_query_posts_orderby

Filters the ORDER BY clause of Top_Ten_Core_Query.

Type: filter
Since: 3.2.0
Source: includes/class-top-ten-core-query.php line 649

Parameters

Type Name Description
string $orderby The ORDER BY clause of the Query.
Top_Ten_Core_Query $query The Top_Ten_Core_Query instance (passed by reference).

Usage

add_filter( 'top_ten_query_posts_orderby', function($orderby, $query) {
    // ...
    return $orderby;
} );