Skip to content

Instantly share code, notes, and snippets.

View giltesa's full-sized avatar

Alberto Gil Tesa giltesa

View GitHub Profile
@roykho
roykho / gist:14c57ab320b2f999e86bb0b531b2e55a
Last active April 17, 2023 12:58
WooCommerce: Delete old lingering admin notices
// Use these instructions at your own risk. Make sure you have full site/database backup prior to proceeding.
//
// Install this plugin to add custom PHP code https://wordpress.org/plugins/code-snippets/
// Activate the plugin.
// Go to Snippets->Add New
// Paste the following code into the provided "Code" field.
// Choose to Run Only Once.
// Click Save changes and activate button at the bottom.
// After running it once, I would suggest to remove this snippet otherwise you may miss out on important updates in the future.
// After running this, you may get a fresh copy of the notices once more. This is normal and this time when you dismiss them, they should stay gone..