Closed ibndawood closed 11 months ago
Closes #84 .
In this PR:
WC_Admin_Notices
usermeta
phpcs
WC Tested upto
Dismiss
add_custom_notice
plugins
dashboard
WooCommerce
Add - Perma-dismissible warning notices.
Thank you, @layoutd, for your review. Yes, the color is not set by our code but the custom notices are set by WooCommerce itself.
Changes proposed in this Pull Request:
Closes #84 .
In this PR:
WC_Admin_Notices
to add dismissible warnings stored in theusermeta
table.WC_Admin_Notices
is unavailable due to WooCommerce being de-activated and the notice is not a warning, we display the non-dismissible error notice.phpcs
warnings.Screenshots:
Detailed test instructions:
WC Tested upto
of the WooCommerce extension plugin header file to less than the current active WooCommerce version.Dismiss
button to dismiss the warning.Additional details:
add_custom_notice
method ofWC_Admin_Notices
.WC_Admin_Notices
appear only in theplugins
,dashboard
andWooCommerce
pages.Changelog entry