BP_Invitation::_insert( array $data = array(), array $data_format = array() )
Create an invitation entry.
Description
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()
- 'user_id'
- $data_format
-
(Optional) See wpdb::insert().
Default value: array()
Return
(int|false) The number of rows inserted, or false on error.
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 ); }
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.