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.
(string) Protected title format.
File: wp-includes/rest-api/search/class-wp-rest-post-search-handler.php
public function protected_title_format() { return '%s'; }
Version | Description |
---|---|
5.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_post_search_handler/protected_title_format