WordPress at Your Fingertips
function is not described

WC_Auth::get_i18n_scope() protected WC 2.4.0

Get scope name.

{} It's a method of the class: WC_Auth{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_i18n_scope( $scope );
$scope(string) (required)
Permission scope.

Changelog

Since 2.4.0 Introduced.

Code of WC_Auth::get_i18n_scope() WC 5.8.0

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

	return $permissions[ $scope ];
}