/includes/api/class-wc-rest-tax-classes-controller.php

  1. <?php 
  2. /** 
  3. * REST API Tax Classes controller 
  4. * 
  5. * Handles requests to the /taxes/classes endpoint. 
  6. * 
  7. * @author WooThemes 
  8. * @category API 
  9. * @package WooCommerce/API 
  10. * @since 2.6.0 
  11. */ 
  12.  
  13. if ( ! defined( 'ABSPATH' ) ) { 
  14. exit; 
  15.  
  16. /** 
  17. * REST API Tax Classes controller class. 
  18. * 
  19. * @package WooCommerce/API 
  20. * @extends WC_REST_Tax_Classes_V1_Controller 
  21. */ 
  22. class WC_REST_Tax_Classes_Controller extends WC_REST_Tax_Classes_V1_Controller { 
  23.  
  24. /** 
  25. * Endpoint namespace. 
  26. * 
  27. * @var string 
  28. */ 
  29. protected $namespace = 'wc/v2'; 
.