Date_Based::get_screens()
Function to get and filter the screens the notice is displayed on.
Return
(TribeAdminNoticearray<string>) List of allowed screens.
Source
File: src/Tribe/Admin/Notice/Date_Based.php
public function get_screens() { $screens = $this->screens; /** * Allows filtering of the screens for all date-based notices. * * @since 4.15.4 * * @param array<string> $screens The current list of allowed screens. * @param string $slug The slug for the current notice. * * @return array<string> $screens The modified list of allowed screens. */ $screens = apply_filters( 'tec_date_based_notice_get_screens', $screens, $this->slug ); /** * Allows filtering of the screens for a specific date-based notice. * * @since 4.15.4 * * @param array<string> $screens The current list of allowed screens. * * @return array<string> $screens The modified list of allowed screens. */ $screens = apply_filters( "tec_date_based_notice_get_screens_{$this->slug}", $screens ); return $screens; }
Changelog
Version | Description |
---|---|
4.15.4 | Introduced. |