Filter hook 'private_title_format'

in WP Core File wp-includes/post-template.php at line 160

Description

Filters the text prepended to the post title of private posts. The filter is only applied on the front end.

Occurrences

Filename Line Number
wp-includes/post-template.php 160

Parameters

Type Name Description
string $prepend Text displayed before the post title. Default 'Private: %s'.
WP_Post $post Current post object.

PHP Doc

/**
			 * Filters the text prepended to the post title of private posts.
			 *
			 * The filter is only applied on the front end.
			 *
			 * @since 2.8.0
			 *
			 * @param string  $prepend Text displayed before the post title.
			 *                         Default 'Private: %s'.
			 * @param WP_Post $post    Current post object.
			 */