How to make current user’s avatar + display name link to their profile?

Use get_the_author_link() or get_the_author_meta(‘user_url’, $user_id). Your code would become something like: $author_link = get_the_author_link(); $header .= ‘<div><a href=”‘. $author_link . ‘”>’ .get_avatar($user_ID, 64).'</a></div>’; $header .= ‘<div><strong><a href=”‘ . $author_link . ‘”>’ . __(“”, “front-end-pm”).’ ‘. fep_get_userdata($user_ID, ‘display_name’, ‘id’) .'</a></strong>’; Watch out with the quotes though, your code seems to use double quotes, I tried to … Read more

Add Link to Users List (Backend) to open each users front-end profile

The following will add a “View author profile” link to the row actions (i.e., the links that appear when you hover over the username): add_filter (‘user_row_actions’, ‘add_view_author_page’, 10, 2) ; function add_view_author_page ($actions, $user) { $href = esc_attr (get_author_posts_url ($user->ID)) ; $actions[‘add_view_author_page’] = “<a href=”https://wordpress.stackexchange.com/questions/259665/$href”>View author page</a>” ; return ($actions) ; } Edit: Or if … Read more

Hide admin notice when user profile updated

You can simply check each of user meta details to see if they are blank or not. The code below is yours with with a check for first and last name. function wpse_user_welcome_notice() { // Make sure that the user is assigned to the subscriber role, specifically. $user = wp_get_current_user(); if ( !in_array( ‘subscriber’, $user->roles … Read more

Is there a possiblity to replace profile image gravatar with custom user images

Yes you can use ACF Pro to achieve that First create a field for user image (here: tsm_local_avatar) then filter the get_gravatar function: <?php /** * Use ACF image field as avatar * @author Mike Hemberger * @link http://thestizmedia.com/acf-pro-simple-local-avatars/ * @uses ACF Pro image field (tested return value set as Array ) */ add_filter(‘get_avatar’, ‘tsm_acf_profile_avatar’, … Read more

Update a user profile via frontend

I’ve written this in a hurry and it’s untested and probably sloppy code, but it gives you an idea of how to accomplish this with AJAX. <form id=”update_user”> <div class=”form-group”> <label for=”firstname”>Name</label> <input type=”text” name=”firstname” id=”firstname” value=”<?= esc_attr(wp_get_current_user()->user_firstname) ?>” placeholder=”Vorname”> </div> <div class=”form-group”> <label for=”name”>Name</label> <input type=”text” name=”name” id=”name” value=”<?= esc_attr(wp_get_current_user()->user_lastname) ?>” placeholder=”Name”> </div> <div … Read more