If you just have to modify the author.php page, this piece of code will probably work :
<?php
if( is_user_logged_in() && is_author(get_current_user_id()) ) {
edit_post_link('edit', '', '');
}
?>
The first part of the conditions checks if there is a user logged.
The second one will be true if the current page is the author page of the current user.
Related Posts:
- Change the Author Slug from Username to Nickname
- Change the author slug from nickname to ID
- How to let contributors to create a new revision(draft) editing their published posts
- Force display name as full name
- Authors Page : A page of authors
- Completely hide user info
- Total Word Count For Posts And Comments By One Author
- Users roles, make a page belonging to multiple users
- Is there any function available to echo current user’s profile url?
- the_author_meta(‘user_url’, $author->ID) not working properly. how can I solve this?
- Where is the information about the authors for articles stored?
- Getting author page slug from get_users() or get_userdata() functions
- Delete User via Frontend
- How to force authors to ‘submit for review’?
- Create Next and Previous Link to User orderby Last Name
- How to implement friend system for WordPress?
- Creating User Profiles using author.php
- Author comment count in author page
- Order users by user role
- How can I set wp_dropdown_users so that it shows only authors?
- How to create page for user?
- How do I tag every author in their posts that they have made previously
- How do I change the user via SQL?
- Add new user and user bio at same time
- show count author post today
- Link to Authors blog posts
- Get multiple roles with get_users
- How to Merge Two Authors Into One?
- Whats the best way to share user data across multiple WordPress websites?
- User-edit role setting distinct from wp_capabilities? [closed]
- Disallowing Users of a Custom Role from Deleting or Adding Administrators?
- What the user_status column?
- Hide Admin Menu for Specific User ID who has administrator Role
- Problem with Hebrew characters in username
- Check if specific username is logged in
- How to insert new values to WordPress user Firstname and Surname Fields via DB
- How to change WordPress user ID?
- How to assign an additional/extra/second user-role to multiple users (of a specific user-role)
- Can I hook into the invite user process to verify their email address is from a certain domain?
- wp_insert_user is not working for me?
- Is there any way to access Ultimate Member’s custom fields?
- How to add country drop down menu to the user profile?
- New user notification doesn’t include activation link
- Use phpbb user database for WordPress
- Add custom fields to the user profile
- Undeleting a deleted user
- WP-Admin edit.php & post.php slowdown after import of 10k users
- A way to count logged in users and display count?
- Disable user profile editing for one user
- Is it possible to get the currently logged in admin’s IP?
- Rule to redirect non logged in User to Custom Registration/login Page in .htaccess file
- Sort users by userID by default on users.php
- How to delete user on logout and when session expires?
- Remove Capabilities from WP admin for specific user role
- What is proper way to store info such as user marking a post as favorite? In post meta or user meta?
- What are some best practices for user exit strategy?
- wordpress disable login for unverified user
- Problem with automatic role change through cron job
- Replace Gravatar with UserPhoto in All Users Coulmn view
- Calling User Nickname
- How redirect after registration?
- Print profile details as PDF or from modal window
- create new users in db starting at what ID?
- About WordPress capabilities [closed]
- No more administrator roles / permissions after WordPress upgrade
- How to display text if profile fields are not filled?
- Load user by specific role
- Get user by meta key – WP multi site
- Force users to use password with specifications
- Change user slug in Buddypress
- Creating a user from a different website
- New User Save Filter
- Inserting current user ID into Post for Author
- Assigning multiple or additional capabilities to specific users or how to create additional roles like bbpress roles?
- Using my own user table
- Add number of members to “Right Now” dashboard widget
- How can I add authors in WordPress and assign them a picture?
- wp_generate_password sets password but can’t login using created password
- add class to element if user is not logged in [closed]
- Get users meta and show to attribute
- How can admins to be notified of changes when users change their WP profiles?
- Can you Recover a WordPress User from a Backup
- wp-admin/users.php Add a column with last name
- 502 Error when edit some users
- How do I delete a wordpress user from giant database?
- get_users – Sort by a different meta_value than search criteria
- How to prevent deleteting specific user?
- Update user counts in admin interface
- How to get the username for a custom link
- Groups roles & capabilities
- Restrict Access to the User Profile
- Username has been exposed
- How To Find The ID Of All Registered Users?
- How to order posts by the user_login that corresponds to a meta_value (which is a user id)?
- How to get only 1 role from user
- Restrict access to certain dashboard pages based on user id
- how to show logged in members username in wordpress content
- hide woo commerce dashboard status and reports from woo commerce from specific users but display to other users
- User agent stylesheet distorting site [closed]
- How to allow users to make quizzes or tests in WordPress?