acf/fields/user/result

acf/fields/user/result

Hook Type: filter

See hook in core

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

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

  • /includes/fields/class-acf-field-user.php line 223
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
         * @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 494
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
         * @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.
     *