Skip to content

Function

Determine whether a notice has been dismissed.

tml_admin_notice_is_dismissed( string $notice )

Parameters

$notice string
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

VersionDescription
7.3 Introduced.