Automattic\WooCommerce\Internal\MCP\Transport
WooCommerceRestTransport::get_removed_error
Get the error returned in place of the removed authentication.
Method of the class: WooCommerceRestTransport{}
No Hooks.
Returns
WP_Error.
Usage
$result = WooCommerceRestTransport::get_removed_error(): WP_Error;
WooCommerceRestTransport::get_removed_error() WooCommerceRestTransport::get removed error code WC 11.3.0
private static function get_removed_error(): WP_Error {
return new WP_Error(
'woocommerce_mcp_removed',
__( 'The WooCommerce MCP endpoint was removed.', 'woocommerce' ),
array( 'status' => 410 )
);
}