/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[\d]+)/notes'; /** * Register the routes for order notes. */ public function register_routes() { } }