bp_notifications_check_notification_access( int $user_id, int $notification_id )

Check if a user has access to a specific notification.


Description Description

Used before deleting a notification for a user.


Parameters Parameters

$user_id

(Required) ID of the user being checked.

$notification_id

(Required) ID of the notification being checked.


Top ↑

Return Return

(bool) True if the notification belongs to the user, otherwise false.


Top ↑

Source Source

File: bp-notifications/bp-notifications-functions.php

function bp_notifications_check_notification_access( $user_id, $notification_id ) {
	return (bool) BP_Notifications_Notification::check_access( $user_id, $notification_id );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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