woocommerce_webhook_resource

FILTER woocommerce\includes\class-wc-webhook.php (ligne 1013) github
Get the resource for the webhook, e.g. `order`.

Paramètres

Entrée :
$topic[0], $this->get_id(
Sortie :
@return string

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_webhook_resource'
add_filter('woocommerce_webhook_resource', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($topic[0]) {
    // Modifier la valeur
    return $topic[0];
}

Actualités

Chargement des actualités...