Tribe__Admin__Notices::remove( string $slug )
Removes a notice based on its slug.
Contents
Parameters
- $slug
-
(string) (Required)
Return
(bool)
Source
File: src/Tribe/Admin/Notices.php
public function remove( $slug ) {
if ( ! $this->exists( $slug ) ) {
return false;
}
unset( $this->notices[ $slug ] );
return true;
}
Changelog
| Version | Description |
|---|---|
| 4.3 | Introduced. |