wc_allow_changing_orders_storage_while_sync_is_pending

FILTER woocommerce\src\Internal\DataStores\Orders\CustomOrdersTableController.php (ligne 777) github
Filter to allow changing where order data is stored, even when there are orders pending synchronization. DANGER! This filter is intended for usage when doing manual and automated testing in development environments only, it should NEVER be used in production environments. Order data corruption or loss can happen!

Paramètres

Entrée :
false
Sortie :
@param bool $allow True to allow changing order storage when there are orders pending synchronization, false to disallow.
@returns bool

Utilisation

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

function ma_fonction_filtre(false) {
    // Modifier la valeur
    return false;
}

Actualités

Chargement des actualités...