ACF_Field_User::ajax_query_args()
Filters the AJAX query args.
Метод класса: ACF_Field_User{}
Хуки из метода
Возвращает
Массив
.
Использование
$ACF_Field_User = new ACF_Field_User(); $ACF_Field_User->ajax_query_args( $args, $request, $query );
- $args(массив) (обязательный)
- The query args.
- $request(массив) (обязательный)
- The query request.
- $query(ACF_Ajax_Query) (обязательный)
- The query object.
Список изменений
С версии 5.8.8 | Введена. |
Код ACF_Field_User::ajax_query_args() ACF Field User::ajax query args ACF 6.0.4
function ajax_query_args( $args, $request, $query ) { // Add specific roles. if ( $query->field['role'] ) { $args['role__in'] = acf_array( $query->field['role'] ); } /** * Filters the query args. * * @date 21/5/19 * @since 5.8.1 * * @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 apply_filters( 'acf/fields/user/query', $args, $query->field, $query->post_id ); }