BP_Optout::_insert( array $data = array(), array $data_format = array() )
Create an opt-out entry.
Description Description
Parameters Parameters
- $data
-
(Optional) Array of optout data, passed to wpdb::insert().
- 'email_address'
(string) The hashed email address of the user that wishes to opt out of communications from this site. - 'user_id'
(int) The ID of the user that generated the contact that resulted in the opt-out. - 'email_type'
(string) The type of email contact that resulted in the opt-out. - 'date_modified'
(string) Date the opt-out was last modified.
Default value: array()
- 'email_address'
- $data_format
-
(Optional) See wpdb::insert().
Default value: array()
Return Return
(int|false) The number of rows inserted, or false on error.
Source Source
File: bp-core/classes/class-bp-optout.php
Changelog Changelog
Version | Description |
---|---|
8.0.0 | Introduced. |