Created
August 8, 2023 09:54
-
-
Save WpComet/f0616a0a503f61fa1d7d643e83c6660a to your computer and use it in GitHub Desktop.
Dismissing a stuck woocommerce notice
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
add_action( 'admin_notices', 'fix_wc_notice_472021' ); | |
/* | |
* Change notice 'name' as needed. | |
*/ | |
function fix_wc_notice_472021() { | |
global $wpdb; | |
$wpdb->update( $wpdb->prefix . 'wc_admin_notes', ['status'=>'actioned'], ['name'=>'woocommerce-core-paypal-march-2022-updated'] ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment