WC_Install::remove_admin_notices()private staticWC 3.2.0

Reset any notices added to admin.

Method of the class: WC_Install{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Install::remove_admin_notices();

Changelog

Since 3.2.0 Introduced.

WC_Install::remove_admin_notices() code WC 8.7.0

private static function remove_admin_notices() {
	include_once dirname( __FILE__ ) . '/admin/class-wc-admin-notices.php';
	WC_Admin_Notices::remove_all_notices();
}