BP_Optout
BuddyPress opt-outs.
Description Description
Use this class to create, access, edit, or delete BuddyPress Nonmember Opt-outs.
Source Source
File: bp-core/classes/class-bp-optout.php
Changelog Changelog
Version | Description |
---|---|
8.0.0 | Introduced. |
Methods Methods
- __construct — Constructor method.
- _delete — Delete opt-outs.
- _insert — Create an opt-out entry.
- _update — Update opt-outs.
- delete — Delete opt-outs.
- delete_by_id — Delete a single opt-out by ID.
- get — Get opt-outs, based on provided filter parameters.
- get_order_by_sql — Assemble the ORDER BY clause of a get() SQL statement.
- get_paged_sql — Assemble the LIMIT clause of a get() SQL statement.
- get_query_clauses — Assemble query clauses, based on arguments, to pass to $wpdb methods.
- get_table_name — Get the opt-outs table name.
- get_total_count — Get a count of total optouts matching a set of arguments.
- get_where_sql — Assemble the WHERE clause of a get() SQL statement.
- optout_exists — Check whether an invitation exists matching the passed arguments.
- populate — Fetch data for an existing opt-out from the database.
- save — Update or insert opt-out details into the database.
- update — Update optouts.