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( 'created', 'updated', 'deleted', 'restored'
Sortie :
@param string $topic Webhook topic. @return bool
// Modifier la valeur avec le filtre 'woocommerce_valid_webhook_events'
add_filter('woocommerce_valid_webhook_events', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(array( 'created') {
// Modifier la valeur
return array( 'created';
}
Chargement des actualités...