repair_default_profiles_fields()
Repair default profile fields.
Description
Source
File: bp-core/admin/bp-core-admin-tools.php
619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 | 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.