Reset_Plugin::run( $args, $assoc_args )
Summary
No summary available.Source
File: src/BigCommerce/CLI/Reset_Plugin.php
public function run( $args, $assoc_args ) { $options_to_delete = [ 'bigcommerce_account_id', 'bigcommerce_store_id', 'bigcommerce_channel_id', 'bigcommerce_channel_id', 'bigcommerce_webhooks', 'schema-' . Webhook_Versioning::class, 'bigcommerce_store_url', 'bigcommerce_client_id', 'bigcommerce_client_secret', 'bigcommerce_access_token', 'bigcommerce_nav_setup_complete', 'bigcommerce_store_type_option_complete', 'bigcommerce_enable_mini_cart', 'bigcommerce_allow_global_logins', ]; foreach ( $options_to_delete as $option ) { \WP_CLI::debug( sprintf( __( 'Deleting option %s', 'bigcommerce' ), $option ) ); delete_option( $option ); } \WP_CLI::success( __( 'Reset complete. Your site is ready to begin account onboarding.', 'bigcommerce' ) ); }