<?php
require_once __DIR__ . '/asking-for-review.php';
require_once __DIR__ . '/offer.php';
require_once __DIR__ . '/bbPress-required.php';
require_once __DIR__ . '/deactivate-other-forum-plugins.php';
require_once __DIR__ . '/class-remote-notice-client.php';
require_once __DIR__ . '/update-notice.php';
require_once __DIR__ . '/theme-compatibility.php';

add_action( 'admin_init', function() {
    if ( class_exists( 'Remote_Notice_Client' ) ) {
        Remote_Notice_Client::init( 'Forumax', [
            'api_url'        => 'https://manage.spider-themes.net/wp-json/noticepilot/v1/content/forumax',
            'plugin_version' => FORUMAX_VERSION,
            'is_pro'         => (forumax_is_premium() || forumax_is_promax()),
        ]);
    }
});
