woocommerce_orders_cot_and_posts_sync_step_size

FILTER woocommerce\src\Internal\DataStores\Orders\DataSynchronizer.php (ligne 945) github
Filter to customize the count of orders that will be synchronized in each step of the custom orders table to/from posts table synchronization process.

Paramètres

Entrée :
$batch_size
Sortie :
@param int Default value for the count.

Utilisation

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

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

Actualités

Chargement des actualités...