WP_REST_Post_Search_Handler::protected_title_format()
Overwrites the default protected title format.
Description 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 Return
(string) Protected title format.
Source Source
File: wp-includes/rest-api/search/class-wp-rest-post-search-handler.php
public function protected_title_format() { return '%s'; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |