container->get_option( 'gutenberg_support_enabled', null ); // Store migration state for notice targeting. if ( null !== $previous_gutenberg_setting ) { // User had the setting - track their choice. update_option( 'pum_gutenberg_legacy_choice', $previous_gutenberg_setting ? 'enabled' : 'disabled' ); // If they had it disabled, they should see the migration notice. if ( ! $previous_gutenberg_setting ) { update_option( 'pum_show_block_editor_migration_notice', true ); } // Clean up the old setting. pum_delete_option( 'gutenberg_support_enabled' ); } else { // New user or no previous setting - no notice needed. update_option( 'pum_gutenberg_legacy_choice', 'new_user' ); } // Mark migration as handled to prevent duplicate runs. update_option( 'pum_block_editor_migration_handled', true ); } }