BP_Invitation_Manager::mark_sent( array $args )

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

Description

Parameters

$args

(array) (Required) Associative array of arguments. All arguments but $page and $per_page can be treated as filter values for get_where_sql() and get_query_clauses(). All items are optional.

  • 'user_id'
    (int|array) ID of user being queried. Can be an array of user IDs.
  • 'inviter_id'
    (int|array) ID of user who created the invitation. Can be an array of user IDs. Special cases
  • 'invitee_email'
    (string|array) Email address of invited users being queried. Can be an array of addresses.
  • 'class'
    (string|array) Name of the class to filter by. Can be an array of class names.
  • 'item_id'
    (int|array) ID of associated item. Can be an array of multiple item IDs.
  • 'secondary_item_id'
    (int|array) ID of secondary associated item. Can be an array of multiple IDs.

Source

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

	public function mark_sent( $args ) {
		$args['class'] = $this->class_name;
		return BP_Invitation::mark_sent_by_data( $args );
	}

Changelog

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.