Contents
bp_core_get_table_prefix()
Get the $wpdb base prefix, run through the ‘bp_core_get_table_prefix’ filter.
Description
The filter is intended primarily for use in multinetwork installations.
Return
(string) Filtered database prefix.
Source
File: bp-core/bp-core-functions.php
function bp_core_get_table_prefix() { global $wpdb; /** * Filters the $wpdb base prefix. * * Intended primarily for use in multinetwork installations. * * @since BuddyPress 1.2.6 * * @param string $base_prefix Base prefix to use. */ return apply_filters( 'bp_core_get_table_prefix', $wpdb->base_prefix ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.2.6 | Introduced. |
Related
Uses
Uses | Description |
---|---|
bp-messages/bp-messages-functions.php: bp_core_get_table_prefix |
Filters table prefix. |
Used By | Description |
---|---|
bp-core/admin/bp-core-admin-schema.php: bp_core_install_invitations() |
Install database tables for the Invitations API |
bp-core/admin/bp-core-admin-schema.php: bp_core_install_document() | |
bp-members/bp-members-functions.php: bp_get_xprofile_member_type_field_id() |
Return the member type xprofile field id. |
bp-members/bp-members-functions.php: bp_get_xprofile_gender_type_field_id() |
Return the gender type xprofile field id. |
bp-core/compatibility/bp-incompatible-plugins-helper.php: bp_core_update_group_fields_id_in_db() |
On BuddyPress update |
bp-xprofile/bp-xprofile-functions.php: bp_xprofile_fullname_field_id() |
Return the field ID for the Full Name xprofile field. |
bp-xprofile/classes/class-bp-xprofile-field-type-gender.php: BP_XProfile_Field_Type_Gender::is_valid() |
Check if valid. |
bp-xprofile/classes/class-bp-xprofile-profiledata.php: BP_XProfile_ProfileData::delete() |
Delete specific XProfile field data. |
bp-xprofile/classes/class-bp-xprofile-profiledata.php: BP_XProfile_ProfileData::get_value_byid() |
Get profile field values by field ID and user IDs. |
bp-xprofile/classes/class-bp-xprofile-profiledata.php: BP_XProfile_ProfileData::populate() |
Populates the XProfile profile data. |
bp-xprofile/classes/class-bp-xprofile-profiledata.php: BP_XProfile_ProfileData::exists() |
Check if there is data already for the user. |
bp-xprofile/classes/class-bp-xprofile-profiledata.php: BP_XProfile_ProfileData::is_valid_field() |
Check if this data is for a valid field. |
bp-xprofile/classes/class-bp-xprofile-profiledata.php: BP_XProfile_ProfileData::save() |
Save the data for the XProfile field. |
bp-xprofile/classes/class-bp-xprofile-field.php: BP_XProfile_Field::get_type() |
Get the type for provided field ID. |
bp-xprofile/classes/class-bp-xprofile-field.php: BP_XProfile_Field::populate() |
Populate a profile field object. |
bp-messages/classes/class-bp-messages-thread.php: BP_Messages_Thread::update_tables() |
Upgrade method for the older BP message thread DB table. |
bp-members/bp-members-functions.php: bp_get_user_gender_pronoun_type() |
Return “his”, “her” or “their” based on member selected gender, used in activity feeds. |
bp-core/deprecated/buddyboss/1.1.8.php: bp_active_member_type_by_type() |
Gets an active member by type. |
bp-members/classes/class-bp-members-component.php: BP_Members_Component::setup_globals() |
Set up bp-members global settings. |
bp-search/classes/class-bp-search-bbpress-forums-replies.php: Bp_Search_bbPress_Replies::sql() | |
bp-search/plugins/search-cpt/class-bp-search-cpt.php: BP_Search_CPT::sql() | |
bp-search/classes/class-bp-search-bbpress-forums.php: Bp_Search_bbPress_Forums::sql() | |
bp-search/classes/class-bp-search-activities.php: Bp_Search_Activities::sql() | |
bp-search/classes/class-bp-search-posts.php: Bp_Search_Posts::sql() | |
bp-search/classes/class-bp-search-bbpress-forums-topics.php: Bp_Search_bbPress_Topics::sql() | |
bp-core/admin/bp-core-admin-schema.php: bp_core_install_blog_tracking() |
Install database tables for the Sites component. |
bp-core/admin/bp-core-admin-schema.php: bp_core_install_media() |
Install database tables for Media component. |
bp-core/admin/bp-core-admin-schema.php: bp_core_install_follow() |
Install database tables for the Follow component. |
bp-core/admin/bp-core-admin-schema.php: bp_core_install_groups() |
Install database tables for the Groups component. |
bp-core/admin/bp-core-admin-schema.php: bp_core_install_private_messaging() |
Install database tables for the Messages component. |
bp-core/admin/bp-core-admin-schema.php: bp_core_install_extended_profiles() |
Install database tables for the Profiles component. |
bp-core/admin/bp-core-admin-schema.php: bp_core_install_default_profiles_fields() |
Install default profile fields. |
bp-core/admin/bp-core-admin-schema.php: bp_core_install_notifications() |
Install database tables for the Notifications component. |
bp-core/admin/bp-core-admin-schema.php: bp_core_install_activity_streams() |
Install database tables for the Activity component. |
bp-core/admin/bp-core-admin-schema.php: bp_core_install_friends() |
Install database tables for the Friends component. |
bp-core/admin/bp-core-admin-tools.php: repair_default_profiles_fields() |
Repair default profile fields. |
bp-core/deprecated/buddypress/1.7.php: bp_update_db_stuff() |
This function was originally used to update pre-1.1 schemas, but that was before we had a legitimate update process. |
bp-core/bp-core-update.php: bp_pre_schema_upgrade() |
Perform database operations that must take place before the general schema upgrades. |
bp-core/profile-search/bps-xprofile.php: bp_ps_xprofile_gender_users_search() |
Fetch the users based on selected value in advance search. |
bp-core/classes/class-bp-core.php: BP_Core::setup_globals() |
Set up bp-core global settings. |
bp-core/gdpr/class-bp-activity-export.php: BP_Activity_Export::get_data() |
Returns the data & count of activities by page and user. |
bp-core/gdpr/class-bp-notification-export.php: BP_Notification_Export::get_data() |
Returns the data & count of notifications by page and user. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.