BP_Invitation_Manager::update_invitation( array $update_args = array(), array $where_args = array() )
Update invitation, based on provided filter parameters.
Description
See also
- BP_Invitation::get(): for a description of accepted update/where arguments.
Parameters
- $update_args
-
(Optional) Associative array of fields to update, and the values to update them to. Of the format array( 'user_id' => 4 )
Default value: array()
- $where_args
-
(Optional) Associative array of columns/values, to determine which invitations should be updated. Formatted as array( 'item_id' => 7 )
Default value: array()
Return
(int|bool) Number of rows updated on success, false on failure.
Source
File: bp-core/classes/class-bp-invitation-manager.php
public function update_invitation( $update_args = array(), $where_args = array() ) { $update_args['class'] = $this->class_name; return BP_Invitation::update( $update_args, $where_args ); }
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.