WC_API_JSON_Handler::get_content_type()
Get the content type for the response
Метод класса: WC_API_JSON_Handler{}
Хуков нет.
Возвращает
Строку
.
Использование
$WC_API_JSON_Handler = new WC_API_JSON_Handler(); $WC_API_JSON_Handler->get_content_type();
Список изменений
С версии 2.1 | Введена. |
Код WC_API_JSON_Handler::get_content_type() WC API JSON Handler::get content type WC 7.7.2
public function get_content_type() { return sprintf( '%s; charset=%s', isset( $_GET['_jsonp'] ) ? 'application/javascript' : 'application/json', get_option( 'blog_charset' ) ); }