Filters the text prepended to the post title for protected posts.
Description
The filter is only applied on the front end.
Parameters
-
$prependstring -
Text displayed before the post title.
Default ‘Protected: %s’. -
$postWP_Post -
Current post object.
Source
$protected_title_format = apply_filters( 'protected_title_format', $prepend, $post );
Changuelog
| Versionen | Description |
|---|---|
| 2.8.0 | Introduced. |
Example migrated from Codex:
Remove protected prefix from post titles