bp_nouveau_notifications_get_filters( string $id = '' )
Get one or all notifications filters.
Description
Parameters
- $id
-
(string) (Optional) The notificication component action to get the filter of. Leave empty to get all notifications filters.
Default value: ''
Return
(array|false) All or a specific notifications parameters. False if no match are found.
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; } }
Changelog
Version | Description |
---|---|
BuddyPress 3.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.