WP_REST_Posts_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.
Метод класса: WP_REST_Posts_Controller{}
Хуков нет.
Возвращает
Строку
. Protected title format.
Использование
$WP_REST_Posts_Controller = new WP_REST_Posts_Controller(); $WP_REST_Posts_Controller->protected_title_format();
Список изменений
С версии 4.7.0 | Введена. |
Код WP_REST_Posts_Controller::protected_title_format() WP REST Posts Controller::protected title format WP 6.2.2
public function protected_title_format() { return '%s'; }