Automattic\WooCommerce\StoreApi\Schemas\V1
AbstractSchema::prepare_html_response
Prepares HTML based content, such as post titles and content, for the API response.
Method of the class: AbstractSchema{}
No Hooks.
Returns
string|array. Formatted data.
Usage
// protected - for code of main (parent) or child class $result = $this->prepare_html_response( $response );
- $response(string|array) (required)
- Data to format.
AbstractSchema::prepare_html_response() AbstractSchema::prepare html response code WC 11.3.0
protected function prepare_html_response( $response ) {
return $this->extend->get_formatter( 'html' )->format( $response );
}