BP_Nouveau_Friends::notification_filters()

Register notifications filters for the friends component.

Description

Source

File: bp-templates/bp-nouveau/includes/friends/loader.php

	public function notification_filters() {
		$notifications = array(
			array(
				'id'       => 'friendship_accepted',
				'label'    => __( 'Accepted connection requests', 'buddyboss' ),
				'position' => 35,
			),
			array(
				'id'       => 'friendship_request',
				'label'    => __( 'Pending connection requests', 'buddyboss' ),
				'position' => 45,
			),
		);

		foreach ( $notifications as $notification ) {
			bp_nouveau_notifications_register_filter( $notification );
		}
	}

Changelog

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.