/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/src/Log
NameSizeModeActions
Admin/-0755rm
Commands/-0755rm
Helpers/-0755rm
Migrations/-0755rm
ValueObjects/-0755rm
Assets.php8160644editdlrm
Log.php36720644editdlrm
LogFactory.php17250644editdlrm
LogModel.php58840644editdlrm
LogRepository.php107310644editdlrm
LogServiceProvider.php17960644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/src/Log/LogServiceProvider.php (1796B)
give_log = "{$wpdb->prefix}give_log"; give()->singleton(Log::class); give()->singleton(LogRepository::class); } /** * @inheritdoc */ public function boot() { $this->registerMigrations(); if (defined('WP_CLI') && WP_CLI) { $this->registerCliCommands(); } Hooks::addAction('give_register_updates', MigrateExistingLogs::class, 'register'); // Hook up if (Environment::isLogsPage()) { Hooks::addAction('admin_enqueue_scripts', Assets::class, 'enqueueScripts'); } } /** * Register migration */ private function registerMigrations() { give(MigrationsRegister::class)->addMigration(CreateNewLogTable::class); // Check if Logs migration batch processing is completed if (give_has_upgrade_completed(MigrateExistingLogs::id())) { give(MigrationsRegister::class)->addMigration(DeleteOldLogTables::class); } } /** * Register CLI commands */ private function registerCliCommands() { WP_CLI::add_command('give flush-logs', give()->make(FlushLogsCommand::class)); } }