Файловый менеджер - Редактировать - /home/digitalm/tendepavia/wp-content/plugins/redux-framework/extendify-sdk/app/Assist/Controllers/WPController.php
Назад
<?php /** * WP Controller */ namespace Extendify\Assist\Controllers; if (!defined('ABSPATH')) { die('No direct access.'); } /** * The controller for interacting with WordPress. */ class WPController { /** * Persist the data * * @param \WP_REST_Request $request - The request. * @return \WP_REST_Response */ public static function updateOption($request) { $params = $request->get_json_params(); \update_option($params['option'], $params['value']); return new \WP_REST_Response(['success' => true]); } /** * Get a setting from the options table * * @param \WP_REST_Request $request - The request. * @return \WP_REST_Response */ public static function getOption($request) { $value = \get_option($request->get_param('option'), null); return new \WP_REST_Response([ 'success' => true, 'data' => $value, ]); } /** * Get the list of active plugins slugs * * @return \WP_REST_Response */ public static function getActivePlugins() { $value = \get_option('active_plugins', null); $slugs = []; foreach ($value as $plugin) { $slugs[] = explode('/', $plugin)[0]; } return new \WP_REST_Response([ 'success' => true, 'data' => $slugs, ]); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.06 |
proxy
|
phpinfo
|
Настройка