Technical Docs

Search Documentation

Function: tribe_notice

Shortcut for Tribe__Admin__Notices::register(), create a Admin Notice easily

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

Parameters summary

(string) $slug Slug to save the notice
(callable|string) $callback A callable Method/Fuction to actually display the notice
(array) $arguments Arguments to Setup a notice
(callable|null) $active_callback An optional callback that should return bool values to indicate whether the notice should display or not.

Return value summary

(stdClass) Which notice was registered


stdClass tribe_notice ( string $slug, callable|string $callback, array $arguments = array(), callable|null $active_callback = null )