woocommerce_csv_exporter_fopen_mode

FILTER woocommerce\includes\export\abstract-wc-csv-batch-exporter.php (ligne 150) github
Filters the mode parameter which specifies the type of access you require to the stream (used during file writing for CSV exports). Defaults to 'a+' (which supports both reading and writing, and places the file pointer at the end of the file).

Paramètres

Entrée :
'a+'
Sortie :
@param string $fopen_mode, either (r, r+, w, w+, a, a+, x, x+, c, c+, e)

Utilisation

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

function ma_fonction_filtre('a+') {
    // Modifier la valeur
    return 'a+';
}

Actualités

Chargement des actualités...