woocommerce_rest_prepare_payment_gateway

woocommerce_rest_prepare_payment_gateway

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_rest_prepare_payment_gateway') is found 2 times:

  • /includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php line 278
    		 * @param WP_REST_Response   $response The response object.
    		 * @param WC_Payment_Gateway $gateway  Payment gateway object.
    		 * @param WP_REST_Request    $request  Request object.
    		 */
    		return apply_filters( 'woocommerce_rest_prepare_payment_gateway', $response, $gateway, $request );
    	}
    
    	/**
    	 * Return settings associated with this payment gateway.
    	 *
    	 * @param WC_Payment_Gateway $gateway Gateway data.
    
  • /includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php line 63
    		 * @param WP_REST_Response   $response The response object.
    		 * @param WC_Payment_Gateway $gateway  Payment gateway object.
    		 * @param WP_REST_Request    $request  Request object.
    		 */
    		return apply_filters( 'woocommerce_rest_prepare_payment_gateway', $response, $gateway, $request );
    	}
    
    	/**
    	 * Return settings associated with this payment gateway.
    	 *
    	 * @param WC_Payment_Gateway $gateway Gateway instance.
    

See this hook used in plugins: