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).
'a+'
Sortie :
@param string $fopen_mode, either (r, r+, w, w+, a, a+, x, x+, c, c+, e)
// 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+';
}
Chargement des actualités...