WC_Helper_Admin::get_permission()public staticWC 1.0

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.

Return

null. Nothing (null).

Usage

$result = WC_Helper_Admin::get_permission();

WC_Helper_Admin::get_permission() code WC 9.7.1

public static function get_permission() {
	return current_user_can( 'manage_woocommerce' );
}