wphooks.info - private_title_format

private_title_format

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/post-template.php:
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
			 * 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.
			 */
			$private_title_format = apply_filters( 'private_title_format', __( 'Private: %s' ), $post );
			$title                = sprintf( $private_title_format, $title );
		}
	}

	/**
	 * Filters the post title.
	 *
	 * @since 0.71
	 *