Snippets: Change the Coma Separator Between Term Lists

Terms (or category) lists are displayed in various parts of the theme such as the Post Meta element as well as theme cards via the wpex_get_post_terms_list() theme function. By default the theme will separate multiple terms using a coma. You can alter the separator globally using the "wpex_list_post_terms_sep" filter as shown below. You can pass on a simple string or HTML.

add_filter( 'wpex_list_post_terms_sep', function( $sep ) {
    $sep = ' | ';
    return $sep;
} );

Snippet Type: PHP

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)