Automattic\WooCommerce\Internal\MCP\Transport

WooCommerceRestTransport::__construct │ 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.

Constructor.

Method of the class: WooCommerceRestTransport{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WooCommerceRestTransport = new WooCommerceRestTransport();
$WooCommerceRestTransport->__construct( $context );
$context(mixed)
The transport context. Ignored.
Default: null

Changelog

Deprecated since 11.3.0

WooCommerceRestTransport::__construct() code WC 11.3.0

public function __construct( $context = null ) {
	unset( $context ); // Kept for backward compatibility.
	McpEndpointRemoval::doing_it_wrong( __METHOD__ );
}