WordPress at Your Fingertips
function is not described

_wp_privacy_settings_filter_draft_page_titles() WP 4.9.8

Appends '(Draft)' to draft page titles in the privacy page dropdown so that unpublished content is obvious.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.


String. Page title.


_wp_privacy_settings_filter_draft_page_titles( $title, $page );
$title(string) (required)
Page title.
$page(WP_Post) (required)
Page data object.


Since 4.9.8 Introduced.

Code of _wp_privacy_settings_filter_draft_page_titles() WP 5.8.2

function _wp_privacy_settings_filter_draft_page_titles( $title, $page ) {
	if ( 'draft' === $page->post_status && 'privacy' === get_current_screen()->id ) {
		/* translators: %s: Page title. */
		$title = sprintf( __( '%s (Draft)' ), $title );

	return $title;