BP_Optout::update( array $update_args = array(), array $where_args = array() )
Update optouts.
Description Description
See also See also
- BP_optout::get(): for a description of accepted update/where arguments.
Parameters Parameters
- $update_args
-
(Optional) Associative array of fields to update, and the values to update them to. Of the format array( 'user_id' => 4, 'email_address' => 'bar@foo.com', ).
Default value: array()
- $where_args
-
(Optional) Associative array of columns/values, to determine which rows should be updated. Of the format array( 'user_id' => 7, 'email_address' => 'bar@foo.com', ).
Default value: array()
Return Return
(int|bool) Number of rows updated on success, false on failure.
Source Source
File: bp-core/classes/class-bp-optout.php
Changelog Changelog
Version | Description |
---|---|
8.0.0 | Introduced. |