delete_options()

Summary

No summary available.

Source

File: uninstall.php

function delete_options() {
	$options = [
		Settings\Sections\Api_Credentials::OPTION_ACCESS_TOKEN,
		Settings\Sections\Api_Credentials::OPTION_CLIENT_ID,
		Settings\Sections\Api_Credentials::OPTION_CLIENT_SECRET,
		Settings\Sections\Api_Credentials::OPTION_STORE_URL,
		Settings\Sections\Channels::CHANNEL_ID,
		Settings\Sections\Channels::CHANNEL_NAME,
		Settings\Sections\New_Account_Section::STORE_INFO,
		Settings\Screens\Create_Account_Screen::SUBMITTED_DATA,
		Settings\Screens\Nav_Menu_Screen::COMPLETE_FLAG,
		Settings\Screens\Store_Type_Screen::NAME,
		Settings\Sections\Cart::OPTION_ENABLE_CART,
		Settings\Sections\Cart::OPTION_AJAX_CART,
		Settings\Sections\Cart::OPTION_CART_PAGE_ID,
		Settings\Sections\Import::OPTION_FREQUENCY,
		Settings\Sections\Import::OPTION_NEW_PRODUCTS,
		Settings\Sections\Import::ENABLE_WEBHOOKS,
		Settings\Sections\Account_Settings::SUPPORT_EMAIL,
		Settings\Sections\Account_Settings::REGISTRATION_SPAM_CHECK,
		Settings\Sections\Account_Settings::ALLOW_GLOBAL_LOGINS,
		Settings\Sections\Analytics::SYNC_ANALYTICS,
		Settings\Sections\Analytics::FACEBOOK_PIXEL,
		Settings\Sections\Analytics::GOOGLE_ANALYTICS,
		Settings\Sections\Analytics::SEGMENT,
		Settings\Sections\Currency::CURRENCY_CODE,
		Settings\Sections\Currency::CURRENCY_SYMBOL,
		Settings\Sections\Currency::CURRENCY_SYMBOL_POSITION,
		Settings\Sections\Currency::DECIMAL_UNITS,
		Settings\Sections\Currency::INTEGER_UNITS,
		Settings\Sections\Currency::ENABLED_CURRENCIES,
		Settings\Sections\Gift_Certificates::OPTION_ENABLE,
		Settings\Sections\Troubleshooting_Diagnostics::LOG_ERRORS,
		Settings\Sections\Units::MASS,
		Settings\Sections\Units::LENGTH,
		'schema-' . Schema\Reviews_Table::class,
		'schema-' . Schema\User_Roles::class,
		'schema-' . Webhook_Versioning::class,
		Status::CURRENT_LOG,
		Status::PREVIOUS_LOG,
		Lock::OPTION,
		Settings\Import_Status::IMPORT_TOTAL_PRODUCTS,
		Listing_Fetcher::STATE_OPTION,
		Listing_Fetcher::PRODUCT_LISTING_MAP,
		Channel_Initializer::STATE_OPTION,
		Product_Data_Fetcher::STATE_OPTION,
		Product_Data_Fetcher::FILTERED_LISTING_MAP,
		Term_Purge::STATE_OPTION,
		Merchant\Onboarding_Api::ACCOUNT_ID,
		Merchant\Onboarding_Api::STORE_ID,
		Merchant\Onboarding_Api::AUTH_KEY,
		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::CATEGORY_SLUG,
		Customizer\Sections\Product_Archive::BRAND_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_Archive::QUICK_VIEW,
		Customizer\Sections\Product_Single::RELATED_COUNT,
		Customizer\Sections\Product_Single::DEFAULT_IMAGE,
		Customizer\Sections\Product_Single::PRICE_DISPLAY,
		Customizer\Sections\Product_Single::INVENTORY_DISPLAY,
		Customizer\Sections\Product_Single::GALLERY_SIZE,
		Customizer\Sections\Product_Single::ENABLE_ZOOM,
		Customizer\Sections\Cart::ENABLE_MINI_CART,
		'bigcommerce_flushed_rewrites',
		md5( 'bc_webhook_product_updatestore/product/*' ), // removed in version 2.1
		md5( 'bc_webhook_password_product_updatestore/product/*' ), // removed in version 2.1
		Webhook::WEBHOOKS_OPTION,
		Webhook::AUTH_KEY_OPTION,
		Settings\Sections\Cart::OPTION_AJAX_CART,
		Settings\Sections\Import::BATCH_SIZE,
		Settings\Sections\Account_Settings::ALLOW_GLOBAL_LOGINS,
		Term_Import::STATE_OPTION,
	];

	foreach ( $options as $option ) {
		\delete_option( $option );
	}
}


User Contributed Notes

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