aioseo_breadcrumbs_separator_symbol

Purpose

This filter can be used to change the breadcrumb separator symbol.

Arguments (1)

  1. $symbol (string) – The symbol.

Example code snippet

The code snippet below is just an example of how this filter can be used. In the example below we’ll change the separator symbol on pages.

// Change breadcrumb separator on pages.
add_filter( 'aioseo_breadcrumbs_separator_symbol', 'aioseo_breadcrumbs_separator_symbol' );
function aioseo_breadcrumbs_separator_symbol( $symbol ) {
	if ( is_singular( 'page' ) ) {
		$symbol = '->';
	}

	return $symbol;
}