feat: add admin banner announcing MyParcel for WooCommerce 6.0 - #1733
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
GravendeelJochem
approved these changes
Jul 21, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an upgrade announcement banner to the plugin’s existing admin Messages/Notices system, informing merchants on MyParcel for WooCommerce 4.x that version 6.0 is available and linking to the migration guide. The banner is scoped to specific admin screens and is dismissible with persistence via the existing dismissal mechanism.
Changes:
- Introduces
UpgradeBannerto render a dismissible info notice with a migration-guide link. - Ensures the banner can be targeted to additional admin screens (WooCommerce Home and HPOS Orders) via new
MessagesRepositoryscreen-id constants. - Updates notice rendering to support richer notice markup (e.g., headings) by avoiding unconditional
<p>wrapping.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| woocommerce-myparcel.php | Calls UpgradeBanner::show() during messenger initialization so the notice is registered consistently. |
| includes/admin/UpgradeBanner.php | New class that builds and registers the v6 upgrade notice using the existing Messages::showAdminNotice() pipeline. |
| includes/admin/MessagesRepository.php | Adds screen-id constants and adjusts notice output so messages can include block-level HTML (e.g., <h3>). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
NabDevs
approved these changes
Jul 23, 2026
Contributor
|
🎉 This PR is included in version 4.26.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
adds an admin banner telling merchants still on the 4.x plugin that a new major version (6.0) is available, with a link to the migration guide.
It shows on the plugin settings page, the orders overview, the WooCommerce home and the plugins page. The banner renders through the plugin's own Messages system, so it only appears while 4.x is active and is gone once the merchant updates to 6.x. Merchants can dismiss it and the choice is remembered per shop.
Fixes INT-1689
🤖 Generated with Claude Code