woocommerce_available_payment_gateways filter-hookWC 1.0

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

WC_Payment_Gateways::get_available_payment_gateways()
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' ) );

Where the hook is used in WooCommerce

Usage not found.