BP_Invitation::_insert( array $data = array(), array $data_format = array() )

Create an invitation entry.


Description Description


Parameters Parameters

$data

(Optional) Array of invitation data, passed to wpdb::insert().

  • 'user_id'
    (int) ID of the invited user.
  • 'inviter_id'
    (int) ID of the user who created the invitation.
  • 'invitee_email'
    (string) Email address of the invited user.
  • 'class'
    (string) Name of the related class.
  • 'item_id'
    (int) ID associated with the invitation and component.
  • 'secondary_item_id'
    (int) Secondary ID associated with the invitation and component.
  • 'content'
    (string) Extra information provided by the requester or inviter.
  • 'date_modified'
    (string) Date the invitation was last modified.
  • 'invite_sent'
    (int) Has the invitation been sent, or is it a draft invite?

Default value: array()

$data_format

(Optional) See wpdb::insert().

Default value: array()


Top ↑

Return Return

(int|false) The number of rows inserted, or false on error.


Top ↑

Source Source

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

	protected static function _insert( $data = array(), $data_format = array() ) {
		global $wpdb;
		return $wpdb->insert( BP_Invitation_Manager::get_table_name(), $data, $data_format );
	}

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.