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

Fluent Support – Helpdesk &amp; Customer Support Ticket System, version 1.5.4. 22 lines.

- Page: https://pluginprobe.com/plugins/fluent-support/1.5.4/code/app/Hooks/Handlers/ActivationHandler.php
- Raw: https://pluginprobe.com/plugins/fluent-support/1.5.4/raw/app/Hooks/Handlers/ActivationHandler.php
- Modified: 2021-11-12T14:57:38+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.5.4/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' );
        }
    }
}

```
