Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Alessandro Tesoro

    (@alessandrotesoro)

    Hi @klish

    Unfortunately it’s not possible to change the url of the function that retrieves the profiles urls. The wpum_get_profile_url function does not have any filter right now.

    You can however add a redirect to the profile page itself.

    
    add_action(
    	'template_redirect',
    	function() {
    		if ( is_page( wpum_get_core_page_id( 'profile' ) ) ) {
    			wp_safe_redirect( get_author_posts_url( wpum_get_queried_user_id() ) );
    			exit;
    		}
    	}
    );
    

    With that code, when a visitor tries to access the WPUM profile page, they’re redirected to the WP author page.

    Thread Starter Angelo

    (@klish)

    That exatly what i need , Thanks 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Profile Redirección’ is closed to new replies.