Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'template_redirect', function() {
- if ( ! is_user_logged_in() ) return;
- $user_id = get_current_user_id();
- $is_verfied = get_user_meta( $user_id, 'bp_verified_member', true );
- if( is_buddypress() && !$is_verfied && ! current_user_can( 'manage_options' ) ){
- wp_redirect( home_url( '/sample-page/' ) );
- die;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement