BP_Notifications_Notification::_update( array $data = array(), array $where = array(), array $data_format = array(), array $where_format = array() )

Update notifications.


Description Description

See also See also


Top ↑

Parameters Parameters

$data

(array) (Optional) Array of notification data to update, passed to wpdb::update(). Accepts any property of a BP_Notification_Notification object.

Default value: array()

$where

(array) (Optional) The WHERE params as passed to wpdb::update(). Typically consists of array( 'ID' => $id ) to specify the ID of the item being updated. See wpdb::update().

Default value: array()

$data_format

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

Default value: array()

$where_format

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

Default value: array()


Top ↑

Return Return

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


Top ↑

Source Source

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

	protected static function _update( $data = array(), $where = array(), $data_format = array(), $where_format = array() ) {
		global $wpdb;
		return $wpdb->update( buddypress()->notifications->table_name, $data, $where, $data_format, $where_format );
	}


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.