old_values[ $key ] = get_option( $key ); $update_result = update_option( $key, $page ); if ( $update_result ) { $this->imported_pages[ $key ] = $page; $imported = true; } } } return [ static::get_name() => $imported ]; } public function get_import_session_metadata(): array { return [ 'previous_pages' => $this->old_values, 'imported_pages' => $this->imported_pages, ]; } }