WooCommerce notice not dismissing – paypal notice

Sometimes WooCommerce notices get stuck for different reasons,we’ve had this woocommerce notice persisting that reads:

Security auto-update of WooCommerce

Your store has been updated to the latest secure version of WooCommerce. We worked with WordPress to deploy PayPal Standard security updates for stores running WooCommerce (version 3.5 to 6.3). It’s recommended to disable PayPal Standard, and use PayPal Payments to accept PayPal.
add_action( ‘admin_notices’, ‘fix_wc_notice_472021’ );
function fix_wc_notice_472021() {
global $wpdb;
$wpdb->update( $wpdb->prefix . ‘wc_admin_notes’, [‘status’=>’actioned’], [‘name’=>’woocommerce-core-paypal-march-2022-updated’] );
}

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *