Title: Problem in Account Page with TML
Last modified: August 30, 2016

---

# Problem in Account Page with TML

 *  [dohko2a](https://wordpress.org/support/users/dohko2a/)
 * (@dohko2a)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-redirection-with-tml/)
 * 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://wordpress.org/plugins/paid-memberships-pro/](https://wordpress.org/plugins/paid-memberships-pro/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [wealthy](https://wordpress.org/support/users/wealthy/)
 * (@wealthy)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-redirection-with-tml/#post-6745984)
 * 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 [http://YorDomain.com/membership-levels/](http://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](https://wordpress.org/support/users/dohko2a/)
 * (@dohko2a)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-redirection-with-tml/#post-6745994)
 * 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](https://wordpress.org/support/users/dohko2a/)
 * (@dohko2a)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-redirection-with-tml/#post-6746011)
 * **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(“
   [http://mydomain.com/my_profile_page/&#8221](http://mydomain.com/my_profile_page/&#8221););}}

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem in Account Page with TML’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paid-memberships-pro_f1dacb.svg)
 * [Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions](https://wordpress.org/plugins/paid-memberships-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paid-memberships-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paid-memberships-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/paid-memberships-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paid-memberships-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paid-memberships-pro/reviews/)

## Tags

 * [profile](https://wordpress.org/support/topic-tag/profile/)

 * 3 replies
 * 2 participants
 * Last reply from: [dohko2a](https://wordpress.org/support/users/dohko2a/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/problem-redirection-with-tml/#post-6746011)
 * Status: not resolved