document_title_separator
Filter HookDescription
Filters the separator for the document title.Hook Information
File Location |
wp-includes/general-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1267 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$sep
|
Document title separator. Default '-'. |
Usage Examples
Basic Usage
<?php
// Hook into document_title_separator
add_filter('document_title_separator', 'my_custom_filter', 10, 1);
function my_custom_filter($sep) {
// Your custom filtering logic here
return $sep;
}
Source Code Context
wp-includes/general-template.php:1267
- How this hook is used in WordPress core
<?php
1262 *
1263 * @since 4.4.0
1264 *
1265 * @param string $sep Document title separator. Default '-'.
1266 */
1267 $sep = apply_filters( 'document_title_separator', '-' );
1268
1269 /**
1270 * Filters the parts of the document title.
1271 *
1272 * @since 4.4.0
PHP Documentation
<?php
/**
* Filters the separator for the document title.
*
* @since 4.4.0
*
* @param string $sep Document title separator. Default '-'.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/general-template.php
Related Hooks
Related hooks will be displayed here in future updates.