File "class-wc-rest-subscription-notes-v1-controller.php"

Full path: /var/www/html/wp-content/plugins/woocommerce-subscriptions/includes/api/v1/class-wc-rest-subscription-notes-v1-controller.php
File size: 650 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php
/**
 * REST API subscription notes controller
 *
 * Handles requests to the /subscription/<id>/notes endpoint.
 *
 * @author   Prospress
 * @since    2.1
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
/**
 * REST API Subscription Notes controller class.
 *
 * @package WooCommerce_Subscriptions/API
 * @extends WC_REST_Order_Notes_Controller
 */
class WC_REST_Subscription_Notes_V1_Controller extends WC_REST_Order_Notes_V1_Controller {

	/**
	 * Route base.
	 *
	 * @var string
	 */
	protected $rest_base = 'subscriptions/(?P<order_id>[\d]+)/notes';

	/**
	 * Post type.
	 *
	 * @var string
	 */
	protected $post_type = 'shop_subscription';

}