posts_fields filter-hook . WP 2.1.0
Filters the SELECT clause of the query.
Usage
add_filter( 'posts_fields', 'filter_function_name_9450', 10, 2 ); function filter_function_name_9450( $fields, $this ){ // filter... return $fields; }
- $fields(string)
- The SELECT clause of the query.
- $this(WP_Query)
- The WP_Query instance (passed by reference).
Changelog
Since 2.1.0 | Introduced. |
Where the hook is called
posts_fields
wp-includes/class-wp-query.php 2760
$fields = apply_filters_ref_array( 'posts_fields', array( $fields, &$this ) );