• You are currently logged in as %1s. You don’t need another account. %2s

    How to set the profile URL to this text/link

Viewing 1 replies (of 1 total)
  • Hello @leo4all,

    Thanks for suggesting the case. we currently don’t have this feature to set URL to this text. We will think about this and may add in next version update.

    For now, we have the filter ur_register_pre_form_message available. so you can add the following in your functions.php

    add_filter('ur_register_pre_form_message', 'custom_message' );
    
    function custom_message() {
    	
        $user_ID = get_current_user_id();
        $user = get_user_by( 'ID', $user_ID );
        $display_name = ! empty( $user->data->display_name ) ? $user->data->display_name : $user->data->user_email;
    
        return __('You are currently logged in as: <a href="https://example.com/my-account">','user-registration') . $display_name . '</a>';
    }

    This link will redirect to user’s my account page. You should have [user_registration_my_account] shortcode to the page with my-account permalink.

    Regards,
    WPEverest Support

Viewing 1 replies (of 1 total)
  • The topic ‘Set Profile URL’ is closed to new replies.