Inpsyde\MultilingualPress\Core\Admin\PluginSettingsPage\PluginSettingsUpdater::update_settings PHP Метод

update_settings() публичный Метод

Updates the plugin settings according to the data in the request.
С версии: 3.0.0
public update_settings ( ) : void
Результат void
    public function update_settings()
    {
        \Inpsyde\MultilingualPress\check_admin_referer($this->nonce);
        array_walk(array_keys($this->module_manager->get_modules()), [$this, 'update_module']);
        $this->module_manager->save_modules();
        /**
         * Runs before the redirect.
         *
         * Process your fields in the $_POST superglobal here and then call update_site_option().
         *
         * @param array $_POST
         */
        do_action('mlp_modules_save_fields', $_POST);
        wp_safe_redirect(add_query_arg('message', 'updated', $this->settings_page->url()));
        \Inpsyde\MultilingualPress\call_exit();
    }