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

Fluent Support – Helpdesk &amp; Customer Support Ticket System, version 1.10.0. 26 lines.

- Page: https://pluginprobe.com/plugins/fluent-support/1.10.0/code/app/Hooks/Handlers/ActivationHandler.php
- Raw: https://pluginprobe.com/plugins/fluent-support/1.10.0/raw/app/Hooks/Handlers/ActivationHandler.php
- Modified: 2022-03-02T14:22:44+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/1.10.0/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);

        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' );
        }
    }
}

```
