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 '-'.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |