woocommerce_rest_customer_query

woocommerce_rest_customer_query

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_rest_customer_query') is found 1 times:

  • /includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php line 270
    		 *
    		 * @param array           $prepared_args Array of arguments for WP_User_Query.
    		 * @param WP_REST_Request $request       The current request.
    		 */
    		$prepared_args = apply_filters( 'woocommerce_rest_customer_query', $prepared_args, $request );
    
    		$query = new WP_User_Query( $prepared_args );
    
    		$users = array();
    		foreach ( $query->results as $user ) {
    			$data = $this->prepare_item_for_response( $user, $request );