WC_REST_Webhooks_Controller{}WC 1.0

REST API Webhooks controller class.

Хуков нет.

Использование

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

Методы

  1. protected get_default_api_version()

Заметки

  • Пакет: WooCommerce\RestApi

Код WC_REST_Webhooks_Controller{} WC 8.7.0

class WC_REST_Webhooks_Controller extends WC_REST_Webhooks_V2_Controller {

	/**
	 * Endpoint namespace.
	 *
	 * @var string
	 */
	protected $namespace = 'wc/v3';

	/**
	 * Get the default REST API version.
	 *
	 * @since  3.0.0
	 * @return string
	 */
	protected function get_default_api_version() {
		return 'wp_api_v3';
	}
}