Plugin Author
Dan
(@dangoodman)
If the the banner’s close button isn’t hiding it even temporarily, this might be a javascript issue caused by a conflict with another plugin. Checking the browser dev console for any errors is a quick way to confirm it.
If the banner hides but then reappears on refresh, it might be an issue with your transient storage. By default, transients are stored in the WordPress database, but this might be changed by other plugins, for example, to store them in memory.
I have the same issue. I need plain non-coder talk on how to fix please.
Thanks, Sue
Plugin Author
Dan
(@dangoodman)
Hello @suesullivan,
What happens when you click the close button on the top-right of the notice?
the window closes. But when I go to the next page it’s there again. It never dismisses.
yes, the notice never goes away. Still there every single time you open another page. I finally uninstalled the plugin.
Plugin Author
Dan
(@dangoodman)
@suesullivan,
Do you have any plugins related to caching, speed, or optimization? If so, could you check if temporarily disabling them helps?
WP Performance Score Booster – turned off, still there
WP Super Cache – turned off, stayed dismissed
WP Super Cache – turned back on and stayed dismissed. Opened other admin areas and still dismissed. Sigh of relief.
Looks like problem solved.
Thanks so much, it was maddening.
Give this a try. I got this to work and seems fine however I am not the author just providing a suggestion… Enjoy!
Append this polyfill directly to the end of USPS-simple-shipping.php. This bypasses their broken JavaScript enqueue process and manually sets the exact site transient the plugin is looking for (uspssimple-retirement-notice).
// --- USPS Simple Notice Hotfix ---
add_action('wp_ajax_usps_simple_force_dismiss', function() {
set_site_transient('uspssimple-retirement-notice', true, 0);
wp_die();
});
add_action('admin_footer', function() {
if (get_site_transient('uspssimple-retirement-notice')) {
return;
}
?>
<script>
jQuery(document).ready(function($) {
// Use event delegation to catch the click before WP core removes the element
$(document).on('click', '.notice[data-dismissible="uspssimple-retirement-notice"] .notice-dismiss', function() {
$.post(ajaxurl, {
action: 'usps_simple_force_dismiss'
});
});
});
</script>
<?php
});