bp_nouveau_notifications_get_filters( string $id = '' )
Get one or all notifications filters.
Parameters Parameters
- $id
-
(string) (Optional) The notificication component action to get the filter of. Leave empty to get all notifications filters.
Default value: ''
Return Return
(array|false) All or a specific notifications parameters. False if no match are found.
Source Source
File: bp-templates/bp-nouveau/includes/notifications/functions.php
function bp_nouveau_notifications_get_filters( $id = '' ) { $bp_nouveau = bp_nouveau(); // Get all filters if ( empty( $id ) ) { return $bp_nouveau->notifications->filters; // Get a specific filter } elseif ( ! empty( $id ) && isset( $bp_nouveau->notifications->filters[ $id ] ) ) { return $bp_nouveau->notifications->filters[ $id ]; } else { return false; } }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |