- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
876 B
PHP
Executable File
29 lines
876 B
PHP
Executable File
<?php
|
|
|
|
namespace FluentMail\Includes;
|
|
|
|
class Activator
|
|
{
|
|
public static function handle($network_wide = false)
|
|
{
|
|
require_once(FLUENTMAIL_PLUGIN_PATH . 'database/FluentMailDBMigrator.php');
|
|
|
|
$emailReportHookName = 'fluentmail_do_daily_scheduled_tasks';
|
|
if (!wp_next_scheduled($emailReportHookName)) {
|
|
wp_schedule_event(time(), 'daily', $emailReportHookName);
|
|
}
|
|
|
|
add_filter('pre_update_option_active_plugins', function ($plugins) {
|
|
$index = array_search('fluent-smtp/fluent-smtp.php', $plugins);
|
|
if ($index !== false) {
|
|
if ($index === 0) {
|
|
return $plugins;
|
|
}
|
|
unset($plugins[$index]);
|
|
array_unshift($plugins, 'fluent-smtp/fluent-smtp.php');
|
|
}
|
|
return $plugins;
|
|
});
|
|
}
|
|
}
|