protected_title_format

protected_title_format

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('protected_title_format') is found 1 times:

  • /wp-includes/post-template.php line 141
    			 * @param string  $prepend Text displayed before the post title.
    			 *                         Default 'Protected: %s'.
    			 * @param WP_Post $post    Current post object.
    			 */
    			$protected_title_format = apply_filters( 'protected_title_format', $prepend, $post );
    
    			$post_title = sprintf( $protected_title_format, $post_title );
    		} elseif ( isset( $post->post_status ) && 'private' === $post->post_status ) {
    
    			/* translators: %s: Private post title. */
    			$prepend = __( 'Private: %s' );
    

See this hook used in plugins: