BP_Invitation::mark_accepted_by_data( array $args )

Mark invitations as accepted that are found by user_id, inviter_id, item id, and optional secondary item id, and class name.

Description

Parameters

$args

(Required) See BP_Invitation::update().

Source

File: bp-core/classes/class-bp-invitation.php

	public static function mark_accepted_by_data( $args ) {

		// Values to be updated
		$update_args = array(
			'accepted' => 'accepted',
		);

		return self::update( $update_args, $args );
	}

Changelog

Changelog
Version Description
BuddyBoss 1.2.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.