Skip to content

Instantly share code, notes, and snippets.

@shameemreza
Created January 25, 2026 04:20
Show Gist options
  • Select an option

  • Save shameemreza/42601374d9f4f92d4e602c667199e392 to your computer and use it in GitHub Desktop.

Select an option

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).
<?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 );
@shameemreza
Copy link
Author

/**
 * Dismiss all WooCommerce Shipping Migration Notices
 *
 * Fixes persistent migration notices that won't dismiss due to blocked AJAX requests.
 */

add_action( 'admin_init', function() {
    update_option( 'wcshipping_installation_completed_shown', true );
    update_option( 'wcshipping_migration_completed_shown', true );
}, 1 );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment