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 Description


Parameters Parameters

$args

(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.


Top ↑

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

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.