WC_Admin_Notices::remove_all_notices │ public static │ WC 1.0

Remove all notices from the locally cached notices array.

Method of the class: WC_Admin_Notices{}

No Hooks.

Returns

void. Nothing (null).

Usage

$result = WC_Admin_Notices::remove_all_notices();

WC_Admin_Notices::remove_all_notices() code WC 11.1.2

public static function remove_all_notices() {
	self::set_notices( array() );
}