<?php
namespace NeoDuplicateFull\NeoFreemius; if (!defined("ABSPATH")) { die("neoWP direct access not allowed"); }




\NeoDuplicateFull\NeoGlobal\add_action_hook("current_screen", function () {

    if (!(\NeoDuplicateFull\NeoGlobal\query_param("page") === \NeoDuplicateFull\NeoGlobal\plugin_settings_page_slug())) { return; }
    if (!init_freemius_once_and_get_instance()->is_activation_mode()) { return; }


    foreach (\NeoDuplicateFull\NeoEntrypoint\get_neo_active_plugins() as $active_plugin) { if ($active_plugin["slug"] === "neo-media" || $active_plugin["slug"] === "neo-prod" || $active_plugin["edition"] === "pro" || $active_plugin["edition"] === "dev") { return; } }


    if (\NeoDuplicateFull\NeoGlobal\query_param("require_license") === "false") { return; }
    wp_safe_redirect(\NeoDuplicateFull\NeoGlobal\add_query_param(\NeoDuplicateFull\NeoGlobal\request_uri(), "require_license", "false"));
    exit;
});
