• Hi !

    I have Theme My Login with PMPRO and it works perfectly.
    But there is 1 problem in a link.

    When a Member is logged on my website, in pmpro_account page there are 2 links (Edit profile / Change password) below username and email, and those 2 links are redirecting to ….mywebsite.fr/wp-admin/profile.php

    And WP dashboard opens ! …. ??
    (My members are Subscribers by default, when they are registered.)
    How to disable this dashboard link and change it for my good page link profile ??

    thx

    https://www.ads-software.com/plugins/paid-memberships-pro/

Viewing 3 replies - 1 through 3 (of 3 total)
  • in my setup members NEVER get to see any of the dashboard. I am guessing this is what you want to happen on your site.

    in MyThemeLogin I have 2 settings in the General tab ticked.
    they are Enable Custom Redirection and Enable Custom User Links.

    In the Redirection tab I have admin set to ‘Login’ default and Logout I have the 3rd option set to my website domain name

    all the other levels are set to the 3rd option of Login https://YorDomain.com/membership-levels/

    Then I have another plugin called ‘Hide Admin Bar From Non-admins’ which does as it suggests. hide the admin bar for non-admins only.

    Does this help??

    Thread Starter dohko2a

    (@dohko2a)

    I have exactly the same options ticked in TML but it doesnt work for subscribers.

    “Hide Admin Bar for NA” doesnt work too for this problem.
    Problem appears in pmpro_account page for a logged subscriber. When we are on this website page, there are 2 links : ‘Edit Profile’ and ‘Change your Password’.

    If this subscriber clicks on those links, he goes directly to wp-admin/profile.php and WP Dashboard is opened, and i dont want that !.

    I tried all solutions, but it’s always the same. I can’t block wp-admin/profile.php opening for subscribers ??

    Thread Starter dohko2a

    (@dohko2a)

    I’ve found a solution for that. It was the only solution for me.

    I created a plugin with that code inside :

    add_action (‘init’ , ‘prevent_profile_access’);
    function prevent_profile_access(){
    if (current_user_can(‘manage_options’)) return ”;

    if (strpos ($_SERVER [‘REQUEST_URI’] , ‘wp-admin/profile.php’ )){
    wp_redirect (“https://mydomain.com/my_profile_page/”);
    }
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem in Account Page with TML’ is closed to new replies.