How to create a profile page for users?

Try this, its work for me add your functions.php add_action(‘init’, function(){ global $wp_rewrite; $wp_rewrite->author_base=”profile”; $wp_rewrite->flush_rules(); }); and create author.php in your theme directory. example; <?php $author = get_user_by(‘slug’, get_query_var(‘author_name’)); echo ‘<pre>’; var_dump($author);

Edit profile fields with TML

copy the profile-form.php file located at template folder inside theme-my-login plugin directory to your theme folder, then you can edit all the look and feel and fields of the profile section.

get current user password on the profile edit page

This cannot be done, it is not possible, and it would be an awful thing to do if it was. Do not attempt or pursue this. Why It Is Not Possible Passwords are ran through a 1 way hashing function before being stored in the database. This allows us to check if a password matches … Read more

Is possible to modify user_login after registration?

WordPress does not allow updating user_login for existing users. You may update it using $wpdb->update as below: // Sanitizes the username $user_login = sanitize_user( trim( $user_login ), true ); // Check if the given username exists if ( ! empty( $user_login ) && ! username_exists( $user_login ) ) { global $wpdb; //Update user record $wpdb->update( … Read more

Renaming/translating “your profile” page

This is more of PHP implementation detail. If you want a precise match you can do something like: if ( isset( $words[$translated] ) ) return $words[$translated]; return $translated; PS you might want to declare $words as static, so that array is reused and not continuously re-created on each function call (which would be a lot … Read more

Renaming profile sections

To clarify the “plugin/functions.php” issue, see: Where do I put the code snippets I found here or somewhere else on the web? You can use the following modified version from toscho’s Retranslate Plugin. I changed post_type for pagenow. Configure the translations in the final array. <?php /* Plugin Name: Retranslate Profile Page Description: Adds translations. … Read more

Update user from external script

It sounds like you are updating the user information after the form has been displayed. You need to rearrange your code so that you are updating the user information earlier, before the form is displayed. If you need help figuring out how to do that, then you need to share some more details about how … Read more