Documentation > Developers > Filter Examples > Custom Filename Separator

Custom Filename Separator

// Use this in wp-config.php
define( 'PICU_FILENAME_SEPARATOR', "\n" ); // New line after each filename

// Use this in the theme's functions.php
function my_custom_filename_separator( $divider ) {
    return ', '; // Adds a comma after each filename
}

add_filter( 'picu_filename_separator', 'my_custom_filename_separator' );Code language: PHP (php)

Need help?

If you couldn’t find what you were looking for and need more assistance, please get in touch with us directly and we’re happy to help.