Warning: This function has been deprecated. Deprecated since BuddyPress 1.9.0. Use bp_notifications_delete_notification() instead.

bp_core_delete_notification( int $id )

Delete a specific notification by its ID.


Parameters Parameters

$id

(int) (Required) ID of notification.


Top ↑

Return Return

(false|integer) True on success, false on failure.


Source Source

File: bp-core/deprecated/1.9.php

function bp_core_delete_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_delete_notification()' );

	return BP_Notifications_Notification::delete_by_id( $id );
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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