# yaymail/4.4.3/vendor-prefixed/src/Contracts/AddonHostAdapter.php

YayMail – WooCommerce Email Customizer, version 4.4.3. 29 lines.

- Page: https://pluginprobe.com/plugins/yaymail/4.4.3/code/vendor-prefixed/src/Contracts/AddonHostAdapter.php
- Raw: https://pluginprobe.com/plugins/yaymail/4.4.3/raw/vendor-prefixed/src/Contracts/AddonHostAdapter.php
- Modified: 2026-08-23T09:32:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yaymail/4.4.3/code/vendor-prefixed/src/Contracts/AddonHostAdapter.php#L10-L20`.

```php
<?php

namespace YayMailScoped\YayCommerce\AdminShell\Contracts;

/**
 * Optional interface for plugins that host licensed addons.
 *
 * When a plugin adapter implements this alongside PluginMenuAdapter,
 * AdminShell creates an AddonBridge that reads the declared filter,
 * registers addon entries in the LicenseRegistry, and renders
 * license cards for them on the Licenses page.
 *
 * Example: YayMail Lite's adapter implements both PluginMenuAdapter
 * and AddonHostAdapter, returning 'yaymail_available_licensing_plugins'.
 * All existing addons continue using that filter unchanged.
 */
interface AddonHostAdapter
{
    /**
     * WordPress filter name that addons use to register their licensing data.
     *
     * The filter must return an array of entries, each with:
     *   [ 'slug', 'name', 'basename', 'file', 'url', 'item_id' ]
     *
     * Same format as yaycommerce_licensing_plugins.
     */
    public function get_addon_licensing_filter(): string;
}

```
