WC_Cart::is_empty PHP Méthode

is_empty() public méthode

Checks if the cart is empty.
public is_empty ( ) : boolean
Résultat boolean
    public function is_empty()
    {
        return 0 === sizeof($this->get_cart());
    }
WC_Cart