WC_Install::remove_admin_notices()
Reset any notices added to admin.
{} It's a method of the class: WC_Install{}
No Hooks.
Return
null
. Nothing.
Usage
$result = WC_Install::remove_admin_notices();
Changelog
Since 3.2.0 | Introduced. |
Code of WC_Install::remove_admin_notices() WC Install::remove admin notices WC 6.7.0
private static function remove_admin_notices() { include_once dirname( __FILE__ ) . '/admin/class-wc-admin-notices.php'; WC_Admin_Notices::remove_all_notices(); }