bp_core_install_follow()
Install database tables for the Follow component.
Description
Source
File: bp-core/admin/bp-core-admin-schema.php
function bp_core_install_follow() { $sql = array(); $charset_collate = $GLOBALS['wpdb']->get_charset_collate(); $bp_prefix = bp_core_get_table_prefix(); $sql[] = "CREATE TABLE {$bp_prefix}bp_follow ( id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY, leader_id bigint(20) NOT NULL, follower_id bigint(20) NOT NULL, KEY followers (leader_id, follower_id) ) {$charset_collate};"; dbDelta( $sql ); }
Changelog
Version | Description |
---|---|
BuddyBoss 1.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.