delete_options()

Summary

No summary available.

Source

File: uninstall.php

function delete_options() {
	$options = [
		Settings\Api_Credentials::OPTION_ACCESS_TOKEN,
		Settings\Api_Credentials::OPTION_CLIENT_ID,
		Settings\Api_Credentials::OPTION_CLIENT_SECRET,
		Settings\Api_Credentials::OPTION_STORE_URL,
		Settings\Cart::OPTION_ENABLE_CART,
		Settings\Cart::OPTION_CART_PAGE_ID,
		Settings\Import::OPTION_FREQUENCY,
		Settings\Import::OPTION_DISABLE_OVERWRITE,
		Settings\Account_Settings::SUPPORT_EMAIL,
		Settings\Analytics::FACEBOOK_PIXEL,
		Settings\Analytics::GOOGLE_ANALYTICS,
		Settings\Currency::CURRENCY_CODE,
		Settings\Currency::CURRENCY_SYMBOL,
		Settings\Currency::CURRENCY_SYMBOL_POSITION,
		Settings\Currency::DECIMAL_UNITS,
		Settings\Gift_Certificates::OPTION_ENABLE,
		Settings\Units::MASS,
		Settings\Units::LENGTH,
		'schema-' . Schema\Products_Table::class,
		'schema-' . Schema\Variants_Table::class,
		'schema-' . Schema\Reviews_Table::class,
		'schema-' . Schema\Import_Queue_Table::class,
		'schema-' . Schema\User_Roles::class,
		Status::CURRENT_LOG,
		Status::PREVIOUS_LOG,
		Lock::OPTION,
		Customizer\Sections\Buttons::ADD_TO_CART,
		Customizer\Sections\Buttons::BUY_NOW,
		Customizer\Sections\Buttons::CHOOSE_OPTIONS,
		Customizer\Sections\Buttons::VIEW_PRODUCT,
		Customizer\Sections\Product_Archive::ARCHIVE_TITLE,
		Customizer\Sections\Product_Archive::ARCHIVE_SLUG,
		Customizer\Sections\Product_Archive::ARCHIVE_DESCRIPTION,
		Customizer\Sections\Product_Archive::SORT_OPTIONS,
		Customizer\Sections\Product_Archive::FILTER_OPTIONS,
		Customizer\Sections\Product_Archive::GRID_COLUMNS,
		Customizer\Sections\Product_Archive::PER_PAGE,
		Customizer\Sections\Product_Single::RELATED_COUNT,
		Customizer\Sections\Product_Single::DEFAULT_IMAGE,
		'bigcommerce_flushed_rewrites',
	];
	foreach ( $options as $option ) {
		\delete_option( $option );
	}
}


User Contributed Notes

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