Returns whether or not the product can be backordered.
( 'yes' === $this->get_backorders(
Sortie :
@return bool
// 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(;
}
Chargement des actualités...