---
title: Extending the Plugin
description: "## Add a messaging provider Core never talks to a chat plugin directly; it talks to a provider interface. To integrate another messaging plugin, implement `WCOffersMessagingProviderInterface` and register it: ``` add_filter( 'wcoffers_messaging_providers', function ( $providers ) { $providers['my_chat'] = new…"
url: "https://www.mswebarts.com/documentation/wc-custom-offers/wc-custom-offers-extending/"
updated: "2026-09-20"
category: WC Custom Offers
---

# Extending the Plugin

## Add a messaging provider

Core never talks to a chat plugin directly; it talks to a provider interface. To integrate another messaging plugin, implement `WCOffersMessagingProviderInterface` and register it:

```
add_filter( 'wcoffers_messaging_providers', function ( $providers ) {
	$providers['my_chat'] = new My_Chat_Provider(); // implements ProviderInterface.
	return $providers;
} );
```

Use the bundled `BetterMessagesProvider` (`src/Messaging/Providers/`) as a reference implementation.

## Add a marketplace resolver

Vendor plugins are abstracted the same way. Implement `WCOffersVendorsSellerResolverInterface` (who owns a product, is a seller active, display info) and register it via `wcoffers_seller_resolvers`. Dokan and single-vendor resolvers ship with the plugin.
