public static function notifications_and_shortcodes() { if (!isset(self::$notifications)) { // Notification types include a name and a list of shortcodes $default_notifications = array(); // defaults are in the hooks class self::$notifications = apply_filters('sprout_notifications', $default_notifications); } if (!isset(self::$shortcodes)) { // Notification shortcodes include the code, a description, and a callback // Most shortcodes should be defined by a different controller using the 'si_notification_shortcodes' filter $default_shortcodes = array(); // Default shortcodes are in the hooks class self::$shortcodes = apply_filters('sprout_notification_shortcodes', $default_shortcodes); } }