This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Remove Xprofile Fields Group. | |
*/ | |
function yzc_remove_edit_profile_settings_page() { | |
// Get List Of Forbidden Groups. | |
$forbidden_groups = array( 1 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Hide Widgets Settings - Project. | |
*/ | |
function yzc_hide_widget_by_member_type( $widgets ) { | |
// Get Data | |
$member_type = bp_get_member_type( bp_displayed_user_id() ); |