WC_Admin_Settings::save()
Save the settings.
Description Description
Source Source
File: includes/admin/class-wc-admin-settings.php
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | public static function save() { global $current_tab ; check_admin_referer( 'woocommerce-settings' ); // Trigger actions. do_action( 'woocommerce_settings_save_' . $current_tab ); do_action( 'woocommerce_update_options_' . $current_tab ); do_action( 'woocommerce_update_options' ); self::add_message( __( 'Your settings have been saved.' , 'woocommerce' ) ); self::check_download_folder_protection(); // Clear any unwanted data and flush rules. update_option( 'woocommerce_queue_flush_rewrite_rules' , 'yes' ); WC()->query->init_query_vars(); WC()->query->add_endpoints(); do_action( 'woocommerce_settings_saved' ); } |