posts_fields WordPress Filter Hook
The posts_fields hook is used to add additional columns to the posts table in the WordPress database. This hook is called when the posts table is created or updated.
apply_filters_ref_array( 'posts_fields', string $fields , WP_Query $query ) #
Filters the SELECT clause of the query.
Parameters
Source
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |