Uname: Linux p3plzcpnl499967.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Software: Apache
PHP version: 8.2.30 [ PHP INFO ] PHP os: Linux
Server Ip: 208.109.40.231
Your Ip: 216.73.216.26
User: nayff91c5tsx (10005085) | Group: nayff91c5tsx (10005085)
Safe Mode: OFF
Disable Function:
NONE

name : Activator.php
<?php

namespace FluentMail\Includes;

class Activator
{
    public static function handle($network_wide = false)
    {
        require_once(FLUENTMAIL_PLUGIN_PATH . 'database/FluentMailDBMigrator.php');

        $emailReportHookName = 'fluentmail_do_daily_scheduled_tasks';
        if (!wp_next_scheduled($emailReportHookName)) {
            wp_schedule_event(time(), 'daily', $emailReportHookName);
        }
        
        add_filter('pre_update_option_active_plugins', function ($plugins) {
            $index = array_search('fluent-smtp/fluent-smtp.php', $plugins);
            if ($index !== false) {
                if ($index === 0) {
                    return $plugins;
                }
                unset($plugins[$index]);
                array_unshift($plugins, 'fluent-smtp/fluent-smtp.php');
            }
            return $plugins;
        });
    }
}
© 2026 GrazzMean