WP_REST_Global_Styles_Controller::protected_title_format() WordPress Method
The WP_REST_Global_Styles_Controller::protected_title_format() method is a protected method that returns the title format for a given global style.
WP_REST_Global_Styles_Controller::protected_title_format() #
Overwrites the default protected title format.
Contents
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
File: wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
public function protected_title_format() { return '%s'; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |