bp_update_to_1_5()
Remove unused metadata from database when upgrading from < 1.5.
Description
Database update methods based on version numbers.
Source
File: bp-core/bp-core-update.php
function bp_update_to_1_5() { // Delete old database version options. delete_site_option( 'bp-activity-db-version' ); delete_site_option( 'bp-blogs-db-version' ); delete_site_option( 'bp-friends-db-version' ); delete_site_option( 'bp-groups-db-version' ); delete_site_option( 'bp-messages-db-version' ); delete_site_option( 'bp-xprofile-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.