BP_Admin_Setting_Forums::settings_save()
Description
Source
File: bp-core/admin/settings/bp-admin-setting-forums.php
public function settings_save() { $sections = bbp_admin_get_settings_sections(); foreach ( (array) $sections as $section_id => $section ) { $fields = bbp_admin_get_settings_fields_for_section( $section_id ); foreach ( (array) $fields as $field_id => $field ) { $value = isset( $_POST[$field_id] ) ? $_POST[$field_id] : ''; if ( is_callable( $field['sanitize_callback'] ) ) { $value = $field['sanitize_callback']($value); } bp_update_option( $field_id, $value ); } } flush_rewrite_rules(); }
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.