public/wordpress/wp-content/plugins/wp-courseware/includes/common/settings-api.php
/**
	 * Save Settings.
	 *
	 * If there is an error thrown, this will continue to save and validate fields, but will leave the erroring field out.
	 *
	 * @since 4.3.0
	 *
	 * @return bool True if the settings were saved.
	 */
Save Settings.
If there is an error thrown, this will continue to save and validate fields, but will leave the erroring field out.



@return bool True if the settings were saved.
Save Settings . If there is an error thrown this will continue to save and validate fields but will leave the erroring field out . @return bool True if the settings were saved .
public function save_settings() {
		if ( empty( $this->settings ) ) {
			$this->load_settings();
		}
		$fields    = $this->get_fields();
		$post_data = $this->get_post_data();
		foreach ( $fields as $key => $field ) {
			if ( ! in_array( $this->get_field_type( $field ), $this->get_excluded_fields() ) ) {
				try {
					$this->settings[ $key ] = $this->get_field_value( $key, $field, $post_data );
				} catch ( Exception $e ) {
					$this->add_error( $e->getMessage() );
				}
			}
		}
		$updated = update_option( $this->get_key(), apply_filters( 'wpcw_settings_api_sanitized_fields_' . $this->get_key(), $this->settings ) );
		do_action( 'wpcw_settings_after_save', $this->settings, $fields, $post_data );
		return $updated;
	}
public function save_settings ( ) { if ( empty ( $ this -> settings ) ) { $ this -> load_settings ( ) ; } $ fields = $ this -> get_fields ( ) ; $ post_data = $ this -> get_post_data ( ) ; foreach ( $ fields as $ key => $ field ) { if ( ! in_array ( $ this -> get_field_type ( $ field ) , $ this -> get_excluded_fields ( ) ) ) { try { $ this -> settings [ $ key ] = $ this -> get_field_value ( $ key , $ field , $ post_data ) ; } catch ( Exception $ e ) { $ this -> add_error ( $ e -> getMessage ( ) ) ; } } } $ updated = update_option ( $ this -> get_key ( ) , apply_filters ( 'wpcw_settings_api_sanitized_fields_' . $ this -> get_key ( ) , $ this -> settings ) ) ; do_action ( 'wpcw_settings_after_save' , $ this -> settings , $ fields , $ post_data ) ; return $ updated ; }
Save Settings.
Save Settings .
/**
		 * Action: After Settings Save.
		 *
		 * @since 4.4.0
		 *
		 * @param array The settings array
		 * @param array $fields The fields array.
		 * @param array $post_data The post data array.
		 */