Filter to check if an order is editable.
in_array( $this->get_status(
Sortie :
@param bool $is_editable Is the order editable. @param WC_Order $this Order object.
// 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(;
}
Chargement des actualités...