astra_delete_option( string $option )

Update Theme options.


Description


Parameters

$option

(string) (Required) option key.


Return

(void)


Source

File: inc/core/common-functions.php

	function astra_delete_option( $option ) {

		do_action( "astra_before_delete_option_{$option}", $option );

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

		// Update value in options array.
		unset( $theme_options[ $option ] );

		update_option( ASTRA_THEME_SETTINGS, $theme_options );

		do_action( "astra_after_delete_option_{$option}", $option );
	}


User Contributed Notes

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