# yaymail/4.4.5/vendor-prefixed/src/Pages/WooCommerceRequiredPage.php

YayMail – WooCommerce Email Customizer, version 4.4.5. 31 lines.

- Page: https://pluginprobe.com/plugins/yaymail/4.4.5/code/vendor-prefixed/src/Pages/WooCommerceRequiredPage.php
- Raw: https://pluginprobe.com/plugins/yaymail/4.4.5/raw/vendor-prefixed/src/Pages/WooCommerceRequiredPage.php
- Modified: 2026-08-23T09:24:58+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.5/code/vendor-prefixed/src/Pages/WooCommerceRequiredPage.php#L10-L20`.

```php
<?php

namespace YayMailScoped\YayCommerce\AdminShell\Pages;

/**
 * Renders the shared "WooCommerce required" full-screen gate.
 *
 * Installed as the settings-page callback by PluginSubmenu when a plugin opts in
 * (adapter's optional needs_woocommerce_screen() returns true). Copy is
 * de-branded by default; a plugin may override any field via the adapter's
 * optional get_woocommerce_screen_copy() method.
 */
class WooCommerceRequiredPage
{
    /**
     * @param array $copy Optional overrides: icon, title, text, button, hint.
     */
    public static function render(array $copy = []): void
    {
        $copy = array_merge(self::defaults(), array_filter($copy));
        include __DIR__ . '/../../views/woocommerce-required-page.php';
    }
    /**
     * Generic, de-branded default copy.
     */
    private static function defaults(): array
    {
        return ['icon' => '🛒', 'title' => __('WooCommerce is required', 'yaycommerce'), 'text' => __('This plugin extends WooCommerce, so it needs WooCommerce installed and activated. Install WooCommerce to get started.', 'yaycommerce'), 'button' => __('Install WooCommerce', 'yaycommerce'), 'hint' => __('Already installed it? Activate WooCommerce, then reload this page.', 'yaycommerce')];
    }
}

```
