Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /var/www/web28/html/wp-content/plugins/duplicator/src/Ajax/ |
Current File : //var/www/web28/html/wp-content/plugins/duplicator/src/Ajax/ServicesExtraPlugins.php |
<?php /** * @package Duplicator * @copyright (c) 2022, Snap Creek LLC */ namespace Duplicator\Ajax; use Duplicator\Ajax\AjaxWrapper; use Duplicator\Utils\ExtraPlugins\ExtraPluginsMng; class ServicesExtraPlugins extends AbstractAjaxService { /** * Init ajax calls * * @return void */ public function init() { $this->addAjaxCall('wp_ajax_duplicator_install_extra_plugin', 'extraPluginInstall'); } /** * Install and activate or just activate plugin * * @return string */ public static function extraPluginInstallCallback() { $slug = filter_input(INPUT_POST, 'plugin', FILTER_SANITIZE_STRING); $message = ''; if (!ExtraPluginsMng::getInstance()->install($slug, $message)) { throw new \Exception($message); } return $message; } /** * Addon plugin install action callback * * @return void */ public function extraPluginInstall() { AjaxWrapper::json( array(__CLASS__, 'extraPluginInstallCallback'), 'duplicator_install_extra_plugin', $_POST['nonce'], 'install_plugins' ); } }
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare