document_title_separator filter-hookWP 4.4.0

Filters the separator for the document title.

Usage

add_filter( 'document_title_separator', 'wp_kama_document_title_separator_filter' );

/**
 * Function for `document_title_separator` filter-hook.
 * 
 * @param string $sep Document title separator.
 *
 * @return string
 */
function wp_kama_document_title_separator_filter( $sep ){

	// filter...
	return $sep;
}
$sep(string)
Document title separator.
Default: '-'

Changelog

Since 4.4.0 Introduced.

Where the hook is called

wp_get_document_title()
document_title_separator
wp-includes/general-template.php 1257
$sep = apply_filters( 'document_title_separator', '-' );

Where the hook is used in WordPress

Usage not found.