Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • function redirect_after_registration() {
    return home_url( ‘/your-page-name’ ); // Replace ‘/your-page-name’ with the URL of the page you want to redirect users to.
    }
    add_filter( ‘registration_redirect’, ‘redirect_after_registration’ );


    Mohammad Imran
    Participant

    @imranmd

    @manni65929 , try this

    add_action( 'bp_ajax_querystring', 'user_remove_mem_directory', 20, 2 );
    function user_remove_mem_directory( $query, $object ) {
    	if ( 'members' != $object ){
    		return $query;
    	}
    
    	$excluded_user = '1';// admin id to remove from the member directory
    
    	$args = wp_parse_args( $query );
    
    	if ( ! empty( $args['exclude'] ) ) {
    		$args['exclude'] = $args['exclude'] . ',' . $excluded_user;
    	} else {
    		$args['exclude'] = $excluded_user;
    	}
    
    	$query = build_query( $args );
    
    	return $query;
    
    }
Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar