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\Account_Settings::SUPPORT_EMAIL,
		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\Gift_Certificates::OPTION_ENABLE,
		Settings\Sections\Troubleshooting_Diagnostics::LOG_ERRORS,
		Settings\Sections\Units::MASS,
		Settings\Sections\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,
		'schema-' . Webhook_Versioning::class,
		Status::CURRENT_LOG,
		Status::PREVIOUS_LOG,
		Lock::OPTION,
		Settings\Import_Status::IMPORT_TOTAL_PRODUCTS,
		Listing_ID_Fetcher::STATE_OPTION,
		Channel_Initializer::STATE_OPTION,
		Product_ID_Fetcher::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::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',
		md5( 'bc_webhook_' . Product_Update_Webhook::ACTION . Product_Update_Webhook::SCOPE ),
		// removed in version 2.1
		md5( 'bc_webhook_password_' . Product_Update_Webhook::ACTION . Product_Update_Webhook::SCOPE ),
		// removed in version 2.1
		Webhook::WEBHOOKS_OPTION,
		Webhook::AUTH_KEY_OPTION,
		Settings\Sections\Cart::OPTION_AJAX_CART,
		Settings\Sections\Import::BATCH_SIZE,
		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.