WordPress at Your Fingertips
class is not described

WC_REST_Webhooks_Controller{} WC 1.0

REST API Webhooks controller class.

No Hooks.

Return

null. Nothing.

Usage

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

Methods

  1. get_default_api_version()

Notes

  • Package: WooCommerce\RestApi

Code of WC_REST_Webhooks_Controller{} WC 5.5.2

<?php
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';
	}
}