acf/fields/user/query
Filters the query args.
Использование
add_filter( 'acf/fields/user/query', 'wp_kama_acf_fields_user_query_filter', 10, 3 );
/**
* Function for `acf/fields/user/query` filter-hook.
*
* @param array $args The query args.
* @param array $field The ACF field related to this query.
* @param int|string $post_id The post_id being edited.
*
* @return array
*/
function wp_kama_acf_fields_user_query_filter( $args, $field, $post_id ){
// filter...
return $args;
}
- $args(массив)
- The query args.
- $field(массив)
- The ACF field related to this query.
- $post_id(int|строка)
- The post_id being edited.
Список изменений
| С версии 5.8.1 | Введена. |
Где вызывается хук
acf/fields/user/query
acf/includes/fields/class-acf-field-user.php 440
return apply_filters( 'acf/fields/user/query', $args, $query->field, $query->post_id );