# fluent-cart/1.6.4/app/Hooks/Handlers/ActivationHandler.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.4. 39 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Hooks/Handlers/ActivationHandler.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/app/Hooks/Handlers/ActivationHandler.php
- Modified: 2025-10-14T16:36:46+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/fluent-cart/1.6.4/code/app/Hooks/Handlers/ActivationHandler.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Hooks\Handlers;

use FluentCart\Api\StoreSettings;
use FluentCart\Database\DBMigrator;

class ActivationHandler
{
    public StoreSettings $storeSettings;

    public function handle($network_wide = false)
    {
        DBMigrator::migrateUp($network_wide);
        $this->storeSettings = new StoreSettings();
        $this->dispatch();

        $this->registerWpCron();
    }

    public function dispatch()
    {

    }

    public function registerWpCron()
    {
        $fiveMinutesHook = 'fluent_cart/scheduler/five_minutes_tasks';
        $hourlyHook = 'fluent_cart/scheduler/hourly_tasks';
        $dailyHook = 'fluent_cart/scheduler/daily_tasks';

        if (function_exists('as_schedule_recurring_action')) {
            as_schedule_recurring_action(time(), (60 * 5), $fiveMinutesHook, [], 'fluent-cart', true);
            as_schedule_recurring_action(time(), (60 * 60), $hourlyHook, [], 'fluent-cart', true);
            as_schedule_recurring_action(time(), (60 * 60 * 24), $dailyHook, [], 'fluent-cart', true);
        }
    }
}

```
