Function
Determine whether a notice has been dismissed.
tml_admin_notice_is_dismissed( string $notice )
Parameters
-
$noticestring - The notice key.
Return
bool
True if the notice has been dismissed.
Source
function tml_admin_notice_is_dismissed( $notice ) {
return in_array( $notice, (array) get_site_option( '_tml_dismissed_notices', array() ), true );
}
Uses
Used by
Changelog
| Version | Description |
|---|---|
| 7.3 | Introduced. |