Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



protected_title_format ›

Seit2.8.0
Veraltetn/v
apply_filters( 'protected_title_format', __( 'Protected: %s' )
Parameter: (2)
  • (string) $prepend Text displayed before the post title. Default 'Protected: %s'.
    Erforderlich: Ja
  • (WP_Post) $post Current post object.
    Erforderlich: Ja
Definiert in:
Codex:

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

The filter is only applied on the front end.





Quellcode

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