posts_fields хук-фильтр . WP 2.1.0
Filters the SELECT clause of the query.
Использование
add_filter( 'posts_fields', 'filter_function_name_4702', 10, 2 ); function filter_function_name_4702( $fields, $this ){ // filter... return $fields; }
- $fields(строка)
- The SELECT clause of the query.
- $this(WP_Query)
- The WP_Query instance (passed by reference).
Список изменений
С версии 2.1.0 | Введена. |
Где вызывается хук
posts_fields
wp-includes/class-wp-query.php 2760
$fields = apply_filters_ref_array( 'posts_fields', array( $fields, &$this ) );