WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

protected_title_format хук-фильтр . WP 2.8.0

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

The filter is only applied on the front end.

Использование

add_filter( 'protected_title_format', 'filter_function_name_9927', 10, 2 );
function filter_function_name_9927( $prepend, $post ){
	// filter...

	return $prepend;
}
$prepend(строка)
Text displayed before the post title.
По умолчанию: 'Protected: %s'
$post(WP_Post)
Current post object.

Список изменений

С версии 2.8.0 Введена.

Где вызывается хук

get_the_title()
protected_title_format
wp-includes/post-template.php 140
$protected_title_format = apply_filters( 'protected_title_format', $prepend, $post );

Где используется хук в ядре WordPress

wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php 1659
add_filter( 'protected_title_format', array( $this, 'protected_title_format' ) );
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php 1663
remove_filter( 'protected_title_format', array( $this, 'protected_title_format' ) );
wp-includes/rest-api/search/class-wp-rest-post-search-handler.php 115
add_filter( 'protected_title_format', array( $this, 'protected_title_format' ) );
wp-includes/rest-api/search/class-wp-rest-post-search-handler.php 117
remove_filter( 'protected_title_format', array( $this, 'protected_title_format' ) );