apply_filters_ref_array( 'posts_fields', string $fields, WP_Query $query )

Filters the SELECT clause of the query.


Parameters

$fields string
The SELECT clause of the query.
$query WP_Query
The WP_Query instance (passed by reference).

Top ↑

Source

File: wp-includes/class-wp-query.php. View all references

$fields = apply_filters_ref_array( 'posts_fields', array( $fields, &$this ) );


Top ↑

Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.