46 lines
719 B
PHP
46 lines
719 B
PHP
<?php
|
|
/**
|
|
* REST API Order Notes controller
|
|
*
|
|
* Handles requests to the /orders/<order_id>/notes endpoint.
|
|
*
|
|
* @author WooThemes
|
|
* @category API
|
|
* @package WooCommerce/API
|
|
* @since 2.6.0
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
/**
|
|
* REST API Order Notes controller class.
|
|
*
|
|
* @package WooCommerce/API
|
|
* @extends WC_REST_Posts_Controller
|
|
*/
|
|
class WC_REST_Order_Notes_Controller extends WP_REST_Controller {
|
|
|
|
/**
|
|
* Endpoint namespace.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $namespace = 'wc/v1';
|
|
|
|
/**
|
|
* Route base.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $rest_base = 'orders/(?P<order_id>[\d]+)/notes';
|
|
|
|
/**
|
|
* Register the routes for order notes.
|
|
*/
|
|
public function register_routes() {
|
|
|
|
}
|
|
}
|