woocommerce_csv_exporter_fopen_mode

woocommerce_csv_exporter_fopen_mode

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.6.9.0

apply_filters('woocommerce_csv_exporter_fopen_mode') is found 1 times:

  • /includes/export/abstract-wc-csv-batch-exporter.php line 143
    		 * @since 6.8.0
    		 *
    		 * @param string $fopen_mode, either (r, r+, w, w+, a, a+, x, x+, c, c+, e)
    		 */
    		$fopen_mode = apply_filters( 'woocommerce_csv_exporter_fopen_mode', 'a+' );
    		$fp         = fopen( $this->get_file_path(), $fopen_mode );
    
    		if ( $fp ) {
    			fwrite( $fp, $data );
    			fclose( $fp );
    		}