WC_Install::remove_admin_notices
Reset any notices added to admin.
Method of the class: WC_Install{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WC_Install::remove_admin_notices();
Changelog
| Since 3.2.0 | Introduced. |
WC_Install::remove_admin_notices() WC Install::remove admin notices code WC 10.3.6
private static function remove_admin_notices() {
include_once __DIR__ . '/admin/class-wc-admin-notices.php';
WC_Admin_Notices::remove_all_notices();
self::remove_update_db_notice();
}