woocommerce_data_stores

FILTER woocommerce\includes\class-wc-data-store.php (ligne 82) github
Tells WC_Data_Store which object (coupon, product, order, etc) store we want to work with.

Paramètres

Entrée :
$this->stores
Sortie :
@param string $object_type Name of object.

Utilisation

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

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

Actualités

Chargement des actualités...