woocommerce
/
includes
/
rest-api
/
Controllers
/
Version4
/
class-wc-rest-settings-v4-controller.php
class-wc-rest-settings-v4-controller.php
33 lines
| 1 | <?php |
| 2 | /** |
| 3 | * REST API Settings V4 controller. |
| 4 | * |
| 5 | * This controller extends the V3 Options settings controller to make all V3 Options settings endpoints |
| 6 | * available under the V4 namespace. |
| 7 | * |
| 8 | * @package WooCommerce\RestApi |
| 9 | * @since 8.6.0 |
| 10 | */ |
| 11 | |
| 12 | declare(strict_types=1); |
| 13 | |
| 14 | if ( ! defined( 'ABSPATH' ) ) { |
| 15 | exit; |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * REST API Settings V4 controller class. |
| 20 | * |
| 21 | * @package WooCommerce\RestApi |
| 22 | * @extends WC_REST_Setting_Options_Controller |
| 23 | */ |
| 24 | class WC_REST_Settings_V4_Controller extends WC_REST_Setting_Options_Controller { |
| 25 | |
| 26 | /** |
| 27 | * Endpoint namespace. |
| 28 | * |
| 29 | * @var string |
| 30 | */ |
| 31 | protected $namespace = 'wc/v4'; |
| 32 | } |
| 33 |