# fluent-support/trunk/app/Hooks/Handlers/ActivationHandler.php

Fluent Support – Helpdesk &amp; Customer Support Ticket System, version trunk. 27 lines.

- Page: https://pluginprobe.com/plugins/fluent-support/trunk/code/app/Hooks/Handlers/ActivationHandler.php
- Raw: https://pluginprobe.com/plugins/fluent-support/trunk/raw/app/Hooks/Handlers/ActivationHandler.php
- Modified: 2026-04-09T13:48:06+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-support/trunk/code/app/Hooks/Handlers/ActivationHandler.php#L10-L20`.

```php
<?php

namespace FluentSupport\App\Hooks\Handlers;

use FluentSupport\Database\DBMigrator;

class ActivationHandler
{
    public function handle($network_wide = false)
    {
        DBMigrator::run($network_wide);
        update_option('fluent_support_db_version', FLUENT_SUPPORT_DB_VERSION, 'no');

        if (! wp_next_scheduled ( 'fluent_support_hourly_tasks' )) {
            wp_schedule_event( time(), 'hourly', 'fluent_support_hourly_tasks' );
        }

        if (! wp_next_scheduled ( 'fluent_support_daily_tasks' )) {
            wp_schedule_event( time(), 'daily', 'fluent_support_daily_tasks' );
        }

        if (! wp_next_scheduled ( 'fluent_support_weekly_tasks' )) {
            wp_schedule_event( time(), 'weekly', 'fluent_support_weekly_tasks' );
        }
    }
}

```
