public static function ajax_set_admin_notice_viewed()
{
if (empty($_POST['notice_id'])) {
die;
}
$notices = self::_get_user_notices();
if (empty($notices)) {
$notices = [];
}
$notices[$_POST['notice_id']] = 'true';
update_user_meta(get_current_user_id(), self::ADMIN_NOTICES_KEY, $notices);
die;
}