BP_Invitation::_update( array $data = array(), array $where = array(), array $data_format = array(), array $where_format = array() )
Update invitations.
Description
See also
- wpdb::update(): for further description of paramater formats.
Parameters
- $data
-
(Optional) Array of invitation data to update, passed to wpdb::update(). Accepts any property of a BP_Invitation object.
Default value: array()
- $where
-
(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
-
(Optional) See wpdb::insert().
Default value: array()
- $where_format
-
(Optional) See wpdb::insert().
Default value: array()
Return
(int|false) The number of rows updated, or false on error.
Source
File: bp-core/classes/class-bp-invitation.php
protected static function _update( $data = array(), $where = array(), $data_format = array(), $where_format = array() ) { global $wpdb; return $wpdb->update( BP_Invitation_Manager::get_table_name(), $data, $where, $data_format, $where_format ); }
Changelog
Version | Description |
---|---|
BuddyBoss 1.3.5 | 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.