woocommerce_webhook_topic

FILTER woocommerce\includes\class-wc-webhook.php (ligne 707) github
Get the webhook topic, e.g. `order.created`.

Paramètres

Entrée :
$this->get_prop( 'topic', $context
Sortie :
@param  string $context What the value is for.
@return string

Utilisation

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

function ma_fonction_filtre($this->get_prop( 'topic') {
    // Modifier la valeur
    return $this->get_prop( 'topic';
}

Actualités

Chargement des actualités...