acf/fields/user/result

acf/fields/user/result

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.2.7

apply_filters('acf/fields/user/result') is found 2 times:

  • /includes/fields/class-acf-field-user.php line 196
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
         * @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/result', $item['text'], $user, $field, $post_id );
    }
     
    /**
     * Filters the field value after it is loaded from the database.
     *
     * @date    23/01/13
  • /includes/fields/class-acf-field-user.php line 465
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
         * @param   WP_User $user The user object.
         * @param   array $field The ACF field related to this query.
         * @param   (int|string) $post_id The post_id being edited.
         */
        $item['text'] = apply_filters( 'acf/fields/user/result', $item['text'], $user, $query->field, $query->post_id );
        return $item;
    }
     
    /**
     * Return an array of data formatted for use in a select2 AJAX response.
     *