repair_default_profiles_fields()
Repair default profile fields.
Description
Source
File: bp-core/admin/bp-core-admin-tools.php
function repair_default_profiles_fields() { require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); require_once( buddypress()->plugin_dir . '/bp-core/admin/bp-core-admin-schema.php' ); bp_core_install_default_profiles_fields(); if ( ! bp_get_option( 'bp-xprofile-base-group-id' ) ) { bp_update_option( 'bp-xprofile-base-group-id', 1 ); } if ( ! bp_get_option( 'bp-xprofile-firstname-field-id' ) ) { bp_update_option( 'bp-xprofile-firstname-field-id', 1 ); } $statement = __( 'Repair default profile set and fields… %s', 'buddyboss' ); return array( 0, sprintf( $statement, __( 'Complete!', 'buddyboss' ) ) ); }
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.