Technical Docs

Search Documentation

Function: tribe_transient_notice

Shortcut for Tribe__Admin__Notices::register_transient(), create a transient Admin Notice easily.

Located at src/functions/template-tags/general.php (Line: 544)

Description

A transient admin notice is a "fire-and-forget" admin notice that will display once registered and until dismissed (if dismissible) without need, on the side of the source code, to register it on each request.

Parameters summary

(string) $slug Slug to save the notice
(string) $html The notice output HTML code
(array) $arguments Arguments to Setup a notice
(int) $expire After how much time (in seconds) the notice will stop showing.

Return value summary

(stdClass) Which notice was registered

Examples

stdClass tribe_transient_notice ( string $slug, string $html, array $arguments = array(), int $expire = null )