stateless::modules::save
stateless::modules::save
Appears in: wp-stateless.2.3.2, wp-stateless.3.0, wp-stateless.3.0.1, wp-stateless.3.0.2, wp-stateless.3.0.3, wp-stateless.3.0.4, wp-stateless.3.1.0, wp-stateless.3.1.1, wp-stateless.3.2.2, wp-stateless.3.2.4, wp-stateless.3.2.5, wp-stateless.3.3.0, wp-stateless.3.4.0, wp-stateless.3.4.1, wp-stateless.4.0.3, wp-stateless.4.0.4, wp-stateless.4.1.1, wp-stateless.4.1.2
Hook Type: filter
Displaying hooks found in version: wp-stateless.4.1.2apply_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); }