WC_Auth::get_i18n_scope PHP Method

get_i18n_scope() protected method

Get scope name.
Since: 2.4.0
protected get_i18n_scope ( string $scope ) : string
$scope string
return string
        protected function get_i18n_scope($scope)
        {
            $permissions = array('read' => __('Read', 'woocommerce'), 'write' => __('Write', 'woocommerce'), 'read_write' => __('Read/Write', 'woocommerce'));
            return $permissions[$scope];
        }