WP_REST_Global_Styles_Controller::protected_title_format()
Overwrites the default protected title format.
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.
Method of the class: WP_REST_Global_Styles_Controller{}
No Hooks.
Return
String
. Protected title format.
Usage
$WP_REST_Global_Styles_Controller = new WP_REST_Global_Styles_Controller(); $WP_REST_Global_Styles_Controller->protected_title_format();
Changelog
Since 5.9.0 | Introduced. |
WP_REST_Global_Styles_Controller::protected_title_format() WP REST Global Styles Controller::protected title format code WP 6.3
public function protected_title_format() { return '%s'; }