bbp_db()
Return the database class being used to interface with the environment.
Description Description
This function is abstracted to avoid global touches to the primary database class. bbPress supports WordPress’s $wpdb
global by default, and can be filtered to support other configurations if needed.
Return Return
(object)
Source Source
File: includes/core/abstraction.php
function bbp_db() { return bbp_get_global_object( 'wpdb', 'WPDB' ); }
Changelog Changelog
Version | Description |
---|---|
2.5.8 | Introduced. |