HEX
Server: nginx/1.18.0
System: Linux mail.dakarash.co.id 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: www-data (33)
PHP: 8.1.2-1ubuntu2.23
Disabled: NONE
Upload Files
File: /home/dakarash.co.id/public_html/plugins/presto-player/inc/Activator.php
<?php

namespace PrestoPlayer;

use PrestoPlayer\Files;
use PrestoPlayer\Database\Migrations;

class Activator
{
    public static function activate()
    {
        // run migrations
        Migrations::run();

        // file stuff
        $activator = new Files();
        $activator->addPrivateFolder();

        /**
         * Reset rewrite rules to avoid go to permalinks page
         * through deleting the database options to force WP to do it
         * because of on activation not work well flush_rewrite_rules()
         */
        delete_option('rewrite_rules');
    }
}