-
Henry Wright replied to the topic Hide profiles of a specific role (not admin) except from profile owner or admin in the forum How-to & Troubleshooting 10 years, 2 months ago
Hi @iburnthings
You can change this:
if ( ! is_super_admin() ) {
if ( is_super_admin( bp_displayed_user_id() ) ) {
wp_redirect( home_url() );
exit;
}
}to:
if ( ! is_super_admin() ) {
if ( ! user_can( bp_displayed_user_id(), 'edit_posts' ) ) {
wp_redirect( home_url() );
exit;
}
} -
Henry Wright replied to the topic Hide profile page of admin from other users in the forum How-to & Troubleshooting 10 years, 2 months ago
@iburnthings it sure can but how exactly do you mean?
-
bp-help replied to the topic Add shortcodes to or otherwise edit member/user/ page in the forum How-to & Troubleshooting 10 years, 2 months ago
@iburnthings
Please review:
@iburnthings
Active 6 years, 2 months ago