posts_fields_request WordPress Filter Hook
The posts_fields_request hook is one of many hooks that are used when making SQL queries to the WordPress database. This particular hook is used to alter the SELECT clause of the SQL query. This can be useful, for example, if you need to add a custom field to the returned results.
apply_filters_ref_array( 'posts_fields_request', string $fields , WP_Query $query ) #
Filters the SELECT clause of the query.
Description
For use by caching plugins.
Parameters
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |