WC_API_Handler{}
Хуков нет.
Использование
$WC_API_Handler = new WC_API_Handler(); // use class methods
Методы
- public generate_response( $data )
- ERROR: no method name found on line `*/`
- ERROR: no method name found on line `*/`
- public get_content_type()
- ERROR: no method name found on line `*/`
- ERROR: no method name found on line `*/`
- public parse_body( $data )
- ERROR: no method name found on line `*/`
- ERROR: no method name found on line `*/`
Код WC_API_Handler{} WC API Handler{} WC 8.1.1
interface WC_API_Handler { /** * Get the content type for the response * * This should return the proper HTTP content-type for the response * * @since 2.1 * @return string */ public function get_content_type(); /** * Parse the raw request body entity into an array * * @since 2.1 * @param string $data * @return array */ public function parse_body( $data ); /** * Generate a response from an array of data * * @since 2.1 * @param array $data * @return string */ public function generate_response( $data ); }