bp_update_to_2_0()

2.0 update routine.

Description

  • Ensure that the activity tables are installed, for last_activity storage.
  • Migrate last_activity data from usermeta to activity table.
  • Add values for all BuddyPress options to the options table.

Source

File: bp-core/bp-core-update.php

472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
function bp_update_to_2_0() {
 
    /* Install activity tables for 'last_activity' ***************************/
 
    bp_core_install_activity_streams();
 
    /* Migrate 'last_activity' data ******************************************/
 
    bp_last_activity_migrate();
 
    /* Migrate signups data **************************************************/
 
    if ( ! is_multisite() ) {
 
        // Maybe install the signups table.
        bp_core_maybe_install_signups();
 
        // Run the migration script.
        bp_members_migrate_signups();
    }
 
    /* Add BP options to the options table ***********************************/
 
    bp_add_options();
}

Changelog

Changelog
Version Description
BuddyPress 2.0.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.