woocommerce_product_backorders_allowed

FILTER woocommerce\includes\abstracts\abstract-wc-product.php (ligne 1791) github
Returns whether or not the product can be backordered.

Paramètres

Entrée :
( 'yes' === $this->get_backorders(
Sortie :
@return bool

Utilisation

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

function ma_fonction_filtre(( 'yes' === $this->get_backorders() {
    // Modifier la valeur
    return ( 'yes' === $this->get_backorders(;
}

Actualités

Chargement des actualités...