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: ''


Top ↑

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;
	}
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.