WP_REST_Post_Search_Handler::protected_title_format
Overwrites the default protected and private title format.
By default, WordPress will show password protected or private posts with a title of "Protected: %s" or "Private: %s", as the REST API communicates the status of a post in a machine-readable format, we remove the prefix.
Метод класса: WP_REST_Post_Search_Handler{}
Хуков нет.
Возвращает
Строку. Title format.
Использование
$WP_REST_Post_Search_Handler = new WP_REST_Post_Search_Handler(); $WP_REST_Post_Search_Handler->protected_title_format();
Список изменений
| С версии 5.0.0 | Введена. |
Код WP_REST_Post_Search_Handler::protected_title_format() WP REST Post Search Handler::protected title format WP 6.8.3
public function protected_title_format() {
return '%s';
}