Check if the given topic is a valid webhook topic, a topic is valid if: + starts with `action.woocommerce_` or `action.wc_`. + it has a valid resource & event.
array( 'coupon', 'customer', 'order', 'product'
Sortie :
@param string $topic Webhook topic. @return bool
// Modifier la valeur avec le filtre 'woocommerce_valid_webhook_resources'
add_filter('woocommerce_valid_webhook_resources', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(array( 'coupon') {
// Modifier la valeur
return array( 'coupon';
}
Chargement des actualités...