WP_REST_Global_Styles_Controller::protected_title_format() – Overwrites the default protected title format.

You appear to be a bot. Output may be restricted

Description

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.

Usage

$string = WP_REST_Global_Styles_Controller::protected_title_format();

Parameters

Returns

string Protected title format.

Source

File name: wordpress/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
Lines:

1 to 3 of 3
  public function protected_title_format() {
    return '%s';
  }
 

 View on GitHub View on Trac