WP_REST_Global_Styles_Controller::protected_title_format(): string

In this article

Overwrites the default protected title format.

Description

By default, WordPress will show password protected posts with a title of "Protected: %s", as the REST API communicates the protected status of a post in a machine readable format, we remove the "Protected: " prefix.

Return

string Protected title format.

Source

'properties'  => array(
	'raw'      => array(
		'description' => __( 'Title for the global styles variation, as it exists in the database.' ),

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.