bp_update_to_1_6()
Remove unused metadata from database when upgrading from < 1.6.0.
Description
Database update methods based on version numbers.
Source
File: bp-core/bp-core-update.php
function bp_update_to_1_6() { // Delete possible site options. delete_site_option( 'bp-db-version' ); delete_site_option( '_bp_db_version' ); delete_site_option( 'bp-core-db-version' ); delete_site_option( '_bp-core-db-version' ); // Delete possible blog options. delete_blog_option( bp_get_root_blog_id(), 'bp-db-version' ); delete_blog_option( bp_get_root_blog_id(), 'bp-core-db-version' ); delete_site_option( bp_get_root_blog_id(), '_bp-core-db-version' ); delete_site_option( bp_get_root_blog_id(), '_bp_db_version' ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.7.0 | Introduced. |
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.