bp_migrate_new_member_activity_component()
Updates the component field for new_members type.
Description Description
Source Source
File: bp-core/bp-core-update.php
function bp_migrate_new_member_activity_component() { global $wpdb; $bp = buddypress(); // Update the component for the new_member type. $wpdb->update( // Activity table. $bp->members->table_name_last_activity, array( 'component' => $bp->members->id, ), array( 'component' => 'xprofile', 'type' => 'new_member', ), // Data sanitization format. array( '%s', ), // WHERE sanitization format. array( '%s', '%s' ) ); }
Changelog Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |