stateless::modules::save

stateless::modules::save

Hook Type: filter

See hook in core

Displaying hooks found in version: wp-stateless.4.1.2

apply_filters('stateless::modules::save') is found 1 times:

  • /lib/classes/class-module.php line 134
         */
        public function save_modules() {
          if (isset($_POST['action']) && $_POST['action'] == 'stateless_modules' && wp_verify_nonce($_POST['_smnonce'], 'wp-stateless-modules')) {
            $modules = !empty($_POST['stateless-modules']) ? $_POST['stateless-modules'] : array();
            $modules = apply_filters('stateless::modules::save', $modules);
    
            if (is_network_admin()) {
              update_site_option('stateless-modules', $modules);
            } else {
              update_option('stateless-modules', $modules, true);
            }