Documentation

Didn't find anything? Ask your questions in the forum.
Documentation Filters helpful_export_separators

helpful_export_separators

Help: If you do not know how to execute or save your own PHP code, you can find help here: How to execute PHP code on your WordPress website

With the filter you can integrate new separators for the CSV export. By default Excel uses , and ;. However, if you need a plus or a other separator, you can extend the list this way.

Place this code in your functions.php to add a plus to the separators:

<?php
/**
 * Inserts a new separator for the CSV.
 * 
 * @param array $separators
 *
 * @return array
 */
add_filter( 'helpful_export_separators', function( $separators ) {
	$separators[] = '+';
	return $separators;
});

Was this post helpful?