Astra_Starter_Content::save_astra_settings()

Save Astra customizer settings into database.


Description


Source

File: inc/compatibility/class-astra-starter-content.php

	public function save_astra_settings() {
		
		$settings = self::get_customizer_json();

		// Delete existing dynamic CSS cache.
		delete_option( 'astra-settings' );

		if ( ! empty( $settings['customizer-settings'] ) ) {
			foreach ( $settings['customizer-settings'] as $option => $value ) {
				update_option( $option, $value );
			}
		}
	}

Changelog

Changelog
Version Description
4.0.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.