Check if order has been created via admin, checkout, or in another way.
$modus === $this->get_created_via(
Sortie :
@param string $modus Way of creating the order to test for. @return bool
// Modifier la valeur avec le filtre 'woocommerce_order_is_created_via'
add_filter('woocommerce_order_is_created_via', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($modus === $this->get_created_via() {
// Modifier la valeur
return $modus === $this->get_created_via(;
}
Chargement des actualités...