BP_Notifications_Notification::_delete( array $where = array(), array $where_format = array() )

Delete notifications.

Description

See also

Parameters

$where

(array) (Optional) Array of WHERE clauses to filter by, passed to wpdb::delete(). Accepts any property of a BP_Notification_Notification object.

Default value: array()

$where_format

(array) (Optional) See wpdb::insert().

Default value: array()

Return

(int|false) The number of rows updated, or false on error.

Source

File: bp-notifications/classes/class-bp-notifications-notification.php

	protected static function _delete( $where = array(), $where_format = array() ) {
		global $wpdb;
		return $wpdb->delete( buddypress()->notifications->table_name, $where, $where_format );
	}

Changelog

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