On this page
apply_filters( 'private_title_format', string $prepend, WP_Post $post )
Filters the text prepended to the post title of private posts.
Description
The filter is only applied on the front end.
Parameters
$prependstring-
Text displayed before the post title.
Default 'Private: %s'. $postWP_Post-
Current post object.
Source
File: wp-includes/post-template.php. View all references
$private_title_format = apply_filters( 'private_title_format', $prepend, $post );
Related
Used By
| Used By | Description |
|---|---|
| get_the_title() wp-includes/post-template.php | Retrieves the post title. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/private_title_format