This function has been deprecated. Deprecated since BuddyPress 1.9.0. Use bp_notifications_check_notification_access() instead.

bp_core_check_notification_access( int $user_id, int $notification_id )

Check if a user has access to a specific notification.

Description

Used before deleting a notification for a user.

Parameters

$user_id

(Required)

$notification_id

(Required)

Return

(boolean) True on success, false on failure.

Source

File: bp-core/deprecated/buddypress/1.9.php

function bp_core_check_notification_access( $user_id, $notification_id ) {

	// Bail if notifications is not active
	if ( ! bp_is_active( 'notifications' ) ) {
		return false;
	}

	// Trigger the deprecated function notice
	_deprecated_function( __FUNCTION__, '1.9', 'bp_notifications_check_notification_access()' );

	return bp_notifications_check_notification_access( $user_id, $notification_id );
}

Changelog

Changelog
Version Description
BuddyPress 1.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.