HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/globfdxw/www/wp-content/plugins/give/src/Onboarding/Setup/Handlers/AdminNoticeHandler.php
<?php

/**
 * Onboarding class
 *
 * @package Give
 */

namespace Give\Onboarding\Setup\Handlers;

defined('ABSPATH') || exit;

class AdminNoticeHandler implements RequestHandler
{

    /**
     * @inheritDoc
     */
    public function maybeHandle()
    {
        if ( ! isset($_GET['page']) || 'give-setup' !== $_GET['page']) {
            return;
        }

        $this->handle();
    }

    /**
     * @inheritDoc
     */
    public function handle()
    {
        add_action(
            'admin_notices',
            function () {
                ob_start();
            },
            -999999
        );
        add_action(
            'admin_notices',
            function () {
                ob_get_clean();
            },
            999999
        );
    }
}