class-wc-rest-webhooks-controller.php
| 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 |