WordPress at a glance
class is not described

WC_API_Handler{} WC 1.0

No Hooks.

Return

Null. Nothing.

Usage

$WC_API_Handler = new WC_API_Handler();
// use class methods

Methods

  1. generate_response( $data )
  2. ERROR: no method name found on line ` */`
  3. ERROR: no method name found on line ` */`
  4. get_content_type()
  5. ERROR: no method name found on line ` */`
  6. ERROR: no method name found on line ` */`
  7. parse_body( $data )
  8. ERROR: no method name found on line ` */`
  9. ERROR: no method name found on line ` */`

Code of WC_API_Handler{} WC 5.0.0

<?php
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 );

}