Created
January 25, 2026 04:20
-
-
Save shameemreza/42601374d9f4f92d4e602c667199e392 to your computer and use it in GitHub Desktop.
Dismiss the persistent "WooCommerce Shipping has successfully been installed and activated" admin notice. Use when the dismiss button fails due to blocked AJAX requests (403 errors from security plugins/firewalls).
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
| <?php | |
| /** | |
| * Dismiss WooCommerce Shipping Migration Notice | |
| * | |
| * Fixes the persistent "WooCommerce Shipping has successfully been installed | |
| * and activated — enjoy the new WooCommerce Shipping experience." notice | |
| * that won't dismiss due to blocked AJAX requests (403 errors). | |
| * | |
| * Usage: Add via Code Snippets plugin (admin only), then deactivate after use. | |
| * | |
| * Cause: Security plugins (Wordfence) or server firewalls blocking admin-ajax.php. | |
| */ | |
| add_action( 'admin_init', function() { | |
| update_option( 'wcshipping_installation_completed_shown', true ); | |
| }, 1 ); |
Author
shameemreza
commented
Jan 25, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment