Recent

top_ten_query_posts_fieldsfilter

top_ten_query_posts_fields

Filters the fields returned by the SELECT clause.

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

Parameters

Type Name Description
string $fields The fields returned by the SELECT clause.
Top_Ten_Core_Query $query The Top_Ten_Core_Query instance (passed by reference).

Usage

add_filter( 'top_ten_query_posts_fields', function($fields, $query) {
    // ...
    return $fields;
} );