Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Is this possible? YES / NO?

@modemlooper

Moderator

I did not test this but this is more in the direction you want to go.

`$user = $bp_displayed_user_id ;
$capability = ‘some_s2_level’ ;

if ( !bp_is_my_profile() && !is_admin() && !user_can( $user, $capability ) ) {
wp_redirect( home_url() ); exit;
}
`

Also, you should write this as a function and then test against the profile page

`function my_member_level_redirect(){

if( bp_is_member() )

code to execute when on profile

}`

Skip to toolbar