Support is monitored from Monday to Saturday in office hours from the GMT timezone. Our response time can be up to 2 business days.

Notice: We do not accept any customization. Please Read Envato Support Policy. But we still can help with little snippets if that's possible!

Okay
  Print

Remove Dropdown Profile Menu

1. Please go to your FTP/CPanel, and go to "wp-content/plugins"

2. Create a new file and name it with "bp-custom.php" (if you already have it, please just open it)

3. Put this snippet on the file

<?php
/**
 * Remove Profile Account Menu.
 */
function yzc_remove_profile_account_menu( $links ) {
    unset( $links['logout'] );
    return $links;
}
add_filter( 'youzify_get_profile_account_menu', 'yzc_remove_profile_account_menu' );

Change 'logout' with any menu you want to remove

  • Widgets page >> 'widgets'
  • Avatar Page >> 'change-photo'
  • Profile Settings Page >> 'profile'
  • Account Settings Page >> 'account'
  • Password Page >> 'change-password'
  • Logout Button >> 'Logout'

PS: if you already have a file with another snippet there, please do not copy the <?php code