Automattic\WooCommerce\Internal\MCP\Transport

WooCommerceRestTransport::check_permission │ public │ 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 checked access to the WooCommerce MCP endpoint.

Method of the class: WooCommerceRestTransport{}

No Hooks.

Returns

WP_Error. Always an error, since the endpoint was removed.

Usage

$WooCommerceRestTransport = new WooCommerceRestTransport();
$WooCommerceRestTransport->check_permission( $request );
$request
.
Default: null

Changelog

Deprecated since 11.3.0

WooCommerceRestTransport::check_permission() code WC 11.3.0

public function check_permission( $request = null ) {
	unset( $request ); // Kept for backward compatibility.
	McpEndpointRemoval::doing_it_wrong( __METHOD__ );
	return self::get_removed_error();
}