Title: The old code
Last modified: May 31, 2025

---

# The old code

 *  Resolved [aib20](https://wordpress.org/support/users/aibtreger/)
 * (@aibtreger)
 * [12 months ago](https://wordpress.org/support/topic/the-old-code/)
 * Hello,
 * The code below no longer works for me. Can you please suggest how to modify it?
 * __( ‘From your account dashboard you can edit your <a href=”%1$s”> profile details
   </a>, edit your <a href=”%2$s”> password</a> and check your <a href=”%3$s”>results
   </a>.’, ‘user-registration’ ),
 *                         esc_url( ur_get_endpoint_url( ‘edit-profile’ ) ),
 *                         esc_url( ur_get_endpoint_url( ‘edit-password’ ) ),
 *                         esc_url( ur_get_endpoint_url( ‘my-results’ ) )
 *             );
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fthe-old-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Amrit Kumar Shrestha](https://wordpress.org/support/users/shresthauzwal/)
 * (@shresthauzwal)
 * [12 months ago](https://wordpress.org/support/topic/the-old-code/#post-18493469)
 * Hi [@aibtreger](https://wordpress.org/support/users/aibtreger/),
   The code appears
   to be incomplete, which might be why it’s not working for you. Could you please
   try the following code snippet instead?
 *     ```wp-block-code
       echo sprintf( __( 'From your account dashboard you can edit your <a href="%1$s"> profile details</a>, edit your <a href="%2$s"> password</a> and check your <a href="%3$s">results</a>.', 'user-registration' ),                         esc_url( ur_get_endpoint_url( 'edit-profile' ) ),                         esc_url( ur_get_endpoint_url( 'edit-password' ) ),                         esc_url( ur_get_endpoint_url( 'my-results' ) )             );
       ```
   
 * Best Regards!
 *  Thread Starter [aib20](https://wordpress.org/support/users/aibtreger/)
 * (@aibtreger)
 * [11 months, 4 weeks ago](https://wordpress.org/support/topic/the-old-code/#post-18493748)
 * Hello Amrit!
 * Thank you for your answer. This is the code inserted. Sadly, it doesn’t work.
   Instead when I enter my account, I see that a critical error has occured
 * /* translators: 1 profile details url, 2: change password url */
   echo wp_kses_post(
   echo sprintf( __(‘From your account dashboard you can edit your profile details(%
   1$s ), edit your password ( %2$s ) and check your results ( %3$s ).’, ‘user-registration’),
   esc_url( ur_get_endpoint_url( ‘edit-profile’ ) ), esc_url( ur_get_endpoint_url(‘
   edit-password’ ) ), esc_url( ur_get_endpoint_url( ‘my-results’ ) ) );
 *  Plugin Support [Amrit Kumar Shrestha](https://wordpress.org/support/users/shresthauzwal/)
 * (@shresthauzwal)
 * [11 months, 4 weeks ago](https://wordpress.org/support/topic/the-old-code/#post-18495080)
 * Hi [@aibtreger](https://wordpress.org/support/users/aibtreger/),
   We suspect that
   the issue might be related to how the code was added. Could you please share 
   a screenshot showing where and how you added the code snippet?
 * We’ll review it and get back to you accordingly.
 * Best regards!
 *  Thread Starter [aib20](https://wordpress.org/support/users/aibtreger/)
 * (@aibtreger)
 * [11 months, 4 weeks ago](https://wordpress.org/support/topic/the-old-code/#post-18496377)
 * Hello, Amrit,
 * I noticed that the code has changed slightly, and I can no longer enter the previous
   one because it causes an error. Earlier, my dashboard displayed the following
   information: “From your account dashboard, you can edit your profile details,
   change your password, and check your results” where “profile detsils”, “password”
   and “results” were links to the respective tags.
 * I wish I could attach a screenshot of the code in dashboard.php, but unfortunately,
   I cannot (what a shame).
 * Anyway, the account dashboard looks good, but I wish it displayed the previous
   information.
 * Cheers!
 *  Plugin Support [Amrit Kumar Shrestha](https://wordpress.org/support/users/shresthauzwal/)
 * (@shresthauzwal)
 * [11 months, 3 weeks ago](https://wordpress.org/support/topic/the-old-code/#post-18498804)
 * Hi [@aibtreger](https://wordpress.org/support/users/aibtreger/),
   You can use 
   a browser extension like Awesome Screenshot and share the link here. Alternatively,
   you can upload the screenshot to your website and add the image URL using the
   image block feature in this forum.
 * Also, we’re a bit unclear about the details of your previous and new dashboards.
   If you could clarify what has changed between the old and new content, it would
   help us assist you better.
 * Best regards!

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

The topic ‘The old code’ is closed to new replies.

 * ![](https://ps.w.org/user-registration/assets/icon-256x256.gif?rev=3284028)
 * [User Registration & Membership - Free & Paid Memberships, Subscriptions, Content Restriction, User Profile, Custom User Registration & Login Builder](https://wordpress.org/plugins/user-registration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-registration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-registration/)
 * [Active Topics](https://wordpress.org/support/plugin/user-registration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-registration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-registration/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Amrit Kumar Shrestha](https://wordpress.org/support/users/shresthauzwal/)
 * Last activity: [11 months, 3 weeks ago](https://wordpress.org/support/topic/the-old-code/#post-18498804)
 * Status: resolved