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)


Top ↑

Source Source

File: includes/core/abstraction.php

function bbp_db() {
	return bbp_get_global_object( 'wpdb', 'WPDB' );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.8 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.