Filter the gateway supported features.
in_array( $feature, $this->supports, true
Sortie :
@param boolean $supports If the gateway supports the feature. @param string $feature Feature to check. @param WC_Payment_Gateway $this Payment gateway instance. @return string
// Modifier la valeur avec le filtre 'woocommerce_payment_gateway_supports'
add_filter('woocommerce_payment_gateway_supports', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(in_array( $feature) {
// Modifier la valeur
return in_array( $feature;
}
Chargement des actualités...