document_title_separator WordPress Filter Hook

The document_title_separator hook is used to filter the document title separator. This hook is useful if you want to change the document title separator. For example, if you want to change the separator from a dash to a pipe, you can use this hook: function my_document_title_separator( $separator ) { $separator = '|'; return $separator; } add_filter( 'document_title_separator', 'my_document_title_separator' );

apply_filters( 'document_title_separator', string $sep ) #

Filters the separator for the document title.


Parameters

$sep

(string)Document title separator. Default '-'.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More