bp_update_to_1_5_1()
Fix forums media showing in users profile media tab.
Description
Source
File: bp-core/bp-core-update.php
function bp_update_to_1_5_1() { if ( bp_is_active( 'xprofile' ) ) { $nickname_field_id = bp_xprofile_nickname_field_id(); bp_xprofile_update_field_meta( $nickname_field_id, 'default_visibility', 'public' ); bp_xprofile_update_field_meta( $nickname_field_id, 'allow_custom_visibility', 'disabled' ); } }
Changelog
Version | Description |
---|---|
BuddyBoss 1.5.1 | 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.