/** * @param WP_Notice $notice * * @return bool * @author Panagiotis Vagenas <*****@*****.**> * @since TODO ${VERSION} */ private function isTimeToKillNtc(WP_Notice $notice) { if ($notice->isSticky()) { return false; } return $notice->exceededMaxTimesToDisplay(); }