woocommerce_available_payment_gateways
Usage
add_filter( 'woocommerce_available_payment_gateways', 'wp_kama_woocommerce_available_payment_gateways_filter' ); /** * Function for `woocommerce_available_payment_gateways` filter-hook. * * @param $available_gateways * * @return */ function wp_kama_woocommerce_available_payment_gateways_filter( $available_gateways ){ // filter... return $available_gateways; }
- $available_gateways
- -
Where the hook is called
woocommerce_available_payment_gateways
woocommerce/includes/class-wc-payment-gateways.php 333
return array_filter( (array) apply_filters( 'woocommerce_available_payment_gateways', $_available_gateways ), array( $this, 'filter_valid_gateway_class' ) );