bp_the_notification_delete_url( int $user_id )

Output the URL used for deleting a single notification.

Description

Since this function directly outputs a URL, it is escaped.

Parameters

$user_id

(Required) The user ID.

Source

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

function bp_the_notification_delete_url( $user_id = 0 ) {
	echo esc_url( bp_get_the_notification_delete_url( $user_id ) );
}

Changelog

Changelog
Version Description
BuddyPress 2.6.0 Added $user_id as a parameter. BuddyPress 2.6.0 Added $user_id as a parameter.
BuddyPress 2.1.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.