2 adding missing `)`
source | link

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 fsif the current page is the author page of the current user.

Hope this works.

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 fs the current page is the author page of the current user.

Hope this works.

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.

1
source | link

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 fs the current page is the author page of the current user.

Hope this works.