Tribe__Admin__Notices::get( string $slug = null )
Gets the configuration for the Notices
Contents
Parameters
- $slug
-
(string) (Optional)
Default value: null
Return
(object|array|null)
Source
File: src/Tribe/Admin/Notices.php
public function get( $slug = null ) {
// Prevent weird stuff here
$slug = sanitize_title_with_dashes( $slug );
if ( is_null( $slug ) ) {
return $this->notices;
}
if ( ! empty( $this->notices[ $slug ] ) ) {
return $this->notices[ $slug ];
}
return null;
}
Changelog
| Version | Description |
|---|---|
| 4.3 | Introduced. |