A WordPress-centric search engine for devs and theme authors



protected_title_format ›

Since2.8.0
Deprecatedn/a
apply_filters( 'protected_title_format', __( 'Protected: %s' )
Parameters: (2)
  • (string) $prepend Text displayed before the post title. Default 'Protected: %s'.
    Required: Yes
  • (WP_Post) $post Current post object.
    Required: Yes
Defined at:
Codex:

Filters the text prepended to the post title for protected posts.

The filter is only applied on the front end.





Source

$protected_title_format = apply_filters( 'protected_title_format', __( 'Protected: %s' ), $post );