has_active function with ogrealert/has_active filter.
This commit is contained in:
@@ -140,6 +140,9 @@ class Alert {
|
||||
|
||||
return apply_filters('ogrealert/get_active', $alerts);
|
||||
}
|
||||
public static function has_active() {
|
||||
return apply_filters('ogrealert/has_active', !empty(self::get_active()));
|
||||
}
|
||||
|
||||
public static function get_random() {
|
||||
$alerts = self::get_active();
|
||||
|
||||
Reference in New Issue
Block a user