astra_update_option( string $option, Mixed $value )

Update Theme options.


Description


Parameters

$option

(string) (Required) option key.

$value

(Mixed) (Required) option value.


Return

(void)


Source

File: inc/core/common-functions.php

	function astra_update_option( $option, $value ) {

		do_action( "astra_before_update_option_{$option}", $value, $option );

		// Get all customizer options.
		$theme_options = get_option( ASTRA_THEME_SETTINGS );

		// Update value in options array.
		$theme_options[ $option ] = $value;

		update_option( ASTRA_THEME_SETTINGS, $theme_options );

		do_action( "astra_after_update_option_{$option}", $value, $option );
	}


User Contributed Notes

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