Automattic\WooCommerce\Internal\MCP\Transport

WooCommerceRestTransport::get_current_user_permissions │ public static │ WC 1.0

Deprecated since 11.3.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Formerly returned the API key permissions of the current WooCommerce MCP request.

Method of the class: WooCommerceRestTransport{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = WooCommerceRestTransport::get_current_user_permissions(): ?string;

Changelog

Deprecated since 11.3.0

WooCommerceRestTransport::get_current_user_permissions() code WC 11.3.0

public static function get_current_user_permissions(): ?string {
	McpEndpointRemoval::doing_it_wrong( __METHOD__ );
	return null;
}