Appends ‘(Draft)’ to draft page titles in the privacy page dropdown so that unpublished content is obvious.
Parameters
$title
stringrequired- Page title.
$page
WP_Postrequired- Page data object.
Source
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;
}
Changelog
Version | Description |
---|---|
4.9.8 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.