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.1

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

  • /includes/fields/class-acf-field-user.php line 196
    			 * @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 466
    			 * @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.
    		 *