acf/fields/user/result

acf/fields/user/result

Hook Type: filter

See hook in core

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

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

  • /includes/fields/class-acf-field-user.php line 185
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
         * @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 452
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
         * @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.
     *