) { // A manual build of the wp options. return array( 'sharing-options', 'disabled_likes', 'disabled_reblogs', 'jetpack_comments_likes_enabled', 'stats_options', 'stats_dashboard_widget', 'safecss_preview_rev', 'safecss_rev', 'safecss_revision_migrated', 'nova_menu_order', 'jetpack_portfolio', 'jetpack_portfolio_posts_per_page', 'jetpack_testimonial', 'jetpack_testimonial_posts_per_page', 'sharedaddy_disable_resources', 'sharing-options', 'sharing-services', 'site_icon_temp_data', 'featured-content', 'site_logo', 'jetpack_dismissed_notices', 'jetpack-twitter-cards-site-tag', 'jetpack-sitemap-state', 'jetpack_sitemap_post_types', 'jetpack_sitemap_location', 'jetpack_protect_key', 'jetpack_protect_blocked_attempts', 'jetpack_protect_activating', 'jetpack_connection_banner_ab', 'jetpack_active_plan', 'jetpack_activation_source', 'jetpack_site_products', 'jetpack_sso_match_by_email', 'jetpack_sso_require_two_step', 'jetpack_sso_remove_login_form', 'jetpack_last_connect_url_check', 'jpo_business_address', 'jpo_site_type', 'jpo_homepage_format', 'jpo_contact_page', 'jetpack_excluded_extensions', ); } /** * Gets all options that can be safely reset by CLI. * * @since 1.1.2 * @since-jetpack 5.4.0 * * @return array array Associative array containing jp_options which are managed by the Jetpack_Options class and wp_options which are not. */ public static function get_options_for_reset() { $all_jp_options = self::get_all_jetpack_options(); $wp_options = self::get_all_wp_options(); $options = array( 'jp_options' => $all_jp_options, 'wp_options' => $wp_options, ); return $options; } /** * Delete all known options * * @since 1.1.2 * @since-jetpack 5.4.0 * * @return void */ public static function delete_all_known_options() { // Delete all compact options. foreach ( (array) self::$grouped_options as $option_name ) { delete_option( $option_name ); } // Delete all non-compact Jetpack options. foreach ( (array) self::get_option_names( 'non-compact' ) as $option_name ) { self::delete_option( $option_name ); } // Delete all options that can be reset via CLI, that aren't Jetpack options. foreach ( (array) self::get_all_wp_options() as $option_name ) { delete_option( $option_name ); } } }