Automattic\WooCommerce\StoreApi\Schemas\V1
AbstractSchema::prepare_html_response()
Prepares HTML based content, such as post titles and content, for the API response.
Метод класса: AbstractSchema{}
Хуков нет.
Возвращает
Строку|Массив
. Formatted data.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->prepare_html_response( $response );
- $response(строка|массив) (обязательный)
- Data to format.
Код AbstractSchema::prepare_html_response() AbstractSchema::prepare html response WC 8.7.0
protected function prepare_html_response( $response ) { return $this->extend->get_formatter( 'html' )->format( $response ); }