<?php | |
/** | |
* Class WC_Stripe_REST_Base_Controller | |
*/ | |
defined( 'ABSPATH' ) || exit; | |
/** | |
* REST controller for transactions. | |
*/ | |
class WC_Stripe_REST_Base_Controller extends WP_REST_Controller { | |
/** | |
* Endpoint namespace. | |
* | |
* @var string | |
*/ | |
protected $namespace = 'wc/v3'; | |
/** | |
* Verify access. | |
* | |
* Override this method if custom permissions required. | |
*/ | |
public function check_permission() { | |
return current_user_can( 'manage_woocommerce' ); | |
} | |
} |