WC_Helper_Admin::get_permission
The Extensions page can only be accessed by users with the manage_woocommerce capability. So the API mimics that behavior.
Method of the class: WC_Helper_Admin{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WC_Helper_Admin::get_permission();
WC_Helper_Admin::get_permission() WC Helper Admin::get permission code WC 10.3.3
public static function get_permission() {
return current_user_can( 'manage_woocommerce' );
}