When you save your settings this is processed, if you added a custom setting to the form you will want to process it here.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <?php add_action('wpfh_save_settings','save'); function save(){ if($_POST['save-settings'] != ""){ update_option('wpfh_site_type', $_POST['wpfh_site_type']); update_option('wpfh_google_map_width', $_POST['wpfh_google_map_width']); update_option('wpfh_google_map_height', $_POST['wpfh_google_map_height']); } } ?> |
Posted in: Actions