BP_Invitation_Manager::update_invitation( array $update_args = array(), array $where_args = array() )

Update invitation, based on provided filter parameters.


Description Description

See also See also


Top ↑

Parameters 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()


Top ↑

Return Return

(int|bool) Number of rows updated on success, false on failure.


Top ↑

Source 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 );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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