WC_Admin_Notices::reset_admin_notices()public staticWC 1.0

Reset notices for themes when switched or a new version of WC is installed.

Method of the class: WC_Admin_Notices{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Admin_Notices::reset_admin_notices();

WC_Admin_Notices::reset_admin_notices() code WC 8.9.0

public static function reset_admin_notices() {
	if ( ! self::is_ssl() ) {
		self::add_notice( 'no_secure_connection' );
	}
	if ( ! self::is_uploads_directory_protected() ) {
		self::add_notice( 'uploads_directory_is_unprotected' );
	}
	self::add_notice( 'template_files' );
	self::add_min_version_notice();
	self::add_maxmind_missing_license_key_notice();
	self::maybe_add_legacy_api_removal_notice();
}