This topic has 1 reply, 2 voices, and was last updated 10 years by Abe.

  • Author
  • #16717
     Bri7265
    Participant

    Just want them to be redirected to registration page after attempting to view a profile.

    #17195
     Abe
    Keymaster

    Hi, In your kleo-child/function.php file add this code:

    COPY CODE
    
    // redirect to registration page instead of membership levels page
    add_filter('kleo_pmpro_url_redirect', 'my_custom_redirect');
    
    function my_custom_redirect() {
    	if (is_user_logged_in()) {
    		return pmpro_url("levels");
    	} else {
    		return bp_get_signup_page();
    	}
    }
    

    This will redirect not registered users to the register page

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?