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 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 ); } } }