PluginProbe
WooCommerce / 11.1.0
WooCommerce v11.1.0
11.1.0 11.1.0-rc.2 11.1.0-rc.1 11.1.0-beta.2 11.1.0-beta.1 11.0.1 11.0.0 11.0.0-rc.3 11.0.0-rc.2 11.0.0-rc.1 11.0.0-beta.2 11.0.0-beta.1 10.9.4 10.9.3 10.9.2 10.9.1 10.9.0 10.9.0-rc.1 10.9.0-beta.2 10.9.0-beta.1 10.8.1 10.8.0 10.8.0-rc.1 10.8.0-beta.2 10.8.0-beta.1 All 648 releases
woocommerce / includes / rest-api / Controllers / Version3 / class-wc-rest-webhooks-controller.php
class-wc-rest-webhooks-controller.php
38 lines 634 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * REST API Webhooks controller
4 *
5 * Handles requests to the /webhooks endpoint.
6 *
7 * @package WooCommerce\RestApi
8 * @since 2.6.0
9 */
10
11 defined( 'ABSPATH' ) || exit;
12
13 /**
14 * REST API Webhooks controller class.
15 *
16 * @package WooCommerce\RestApi
17 * @extends WC_REST_Webhooks_V2_Controller
18 */
19 class WC_REST_Webhooks_Controller extends WC_REST_Webhooks_V2_Controller {
20
21 /**
22 * Endpoint namespace.
23 *
24 * @var string
25 */
26 protected $namespace = 'wc/v3';
27
28 /**
29 * Get the default REST API version.
30 *
31 * @since 3.0.0
32 * @return string
33 */
34 protected function get_default_api_version() {
35 return 'wp_api_v3';
36 }
37 }
38