Automattic\WooCommerce\Internal\MCP\Transport
WooCommerceRestTransport::__construct
Constructor.
Method of the class: WooCommerceRestTransport{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WooCommerceRestTransport = new WooCommerceRestTransport(); $WooCommerceRestTransport->__construct( $context );
- $context(McpTransportContext) (required)
- The transport context.
WooCommerceRestTransport::__construct() WooCommerceRestTransport:: construct code WC 10.3.3
public function __construct( McpTransportContext $context ) {
parent::__construct( $context );
// This filter is documented in the check_ability_permission method.
add_filter( 'woocommerce_check_rest_ability_permissions_for_method', array( $this, 'check_ability_permission' ), 10, 3 );
}