string $prepend, WP_Post $post )
Filters the text prepended to the post title of private posts.
The filter is only applied on the front end.
Text displayed before the post title.
Default 'Private: %s'.
Current post object.
View all references
$private_title_format = apply_filters( 'private_title_format', $prepend, $post );
Example migrated from Codex:
Remove protected prefix from post titles.
I got a critical error, when doing as suggested by others, here and elsewhere.
I managed to solve that by doing it like this:
This filter can be added like this: