Файловый менеджер - Редактировать - /home/harasnat/www/horse/wp-content/plugins/woo-image-seo/lib/ajax-actions/save-settings.php
Назад
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly add_action( 'wp_ajax_woo_image_seo_save_settings', function() { check_ajax_referer( 'woo_image_seo_save_settings' ); // reset to default settings if ( ! empty( $_POST['apply_default_settings'] ) ) { update_option( 'woo_image_seo', WOO_IMAGE_SEO['default_settings'] ); ob_start(); require_once WOO_IMAGE_SEO['views_dir'] . 'partials/form-settings.php'; wp_send_json( ob_get_clean() ); } else { // clean the $_POST variable from the values we don't need in the DB unset( $_POST['_wpnonce'] ); unset( $_POST['_wp_http_referer'] ); unset( $_POST['action'] ); update_option( 'woo_image_seo', json_encode( $_POST, JSON_NUMERIC_CHECK ) ); wp_send_json( true ); } } );
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка