WC_Admin_Notices::reset_admin_notices()
Reset notices for themes when switched or a new version of WC is installed.
{} It's a method of the class: WC_Admin_Notices{}
No Hooks.
Return
null
. Nothing.
Usage
$result = WC_Admin_Notices::reset_admin_notices();
Code of WC_Admin_Notices::reset_admin_notices() WC Admin Notices::reset admin notices WC 6.7.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(); }