WC_Auth::get_i18n_scope( string $scope )

Get scope name.


Description Description


Parameters Parameters

$scope

(Required) Permission scope.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class-wc-auth.php

	protected function get_i18n_scope( $scope ) {
		$permissions = array(
			'read'       => __( 'Read', 'woocommerce' ),
			'write'      => __( 'Write', 'woocommerce' ),
			'read_write' => __( 'Read/Write', 'woocommerce' ),
		);

		return $permissions[ $scope ];
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.