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!
false
Sortie :
@param bool $allow True to allow changing order storage when there are orders pending synchronization, false to disallow. @returns bool
// 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;
}
Chargement des actualités...