wc_order_is_editable

FILTER woocommerce\includes\class-wc-order.php (ligne 1664) github
Filter to check if an order is editable.

Paramètres

Entrée :
in_array( $this->get_status(
Sortie :
@param bool     $is_editable Is the order editable.
@param WC_Order $this        Order object.

Utilisation

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

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

Actualités

Chargement des actualités...