diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php
index 815c539..bae6ed9 100644
--- a/wp-includes/link-template.php
+++ b/wp-includes/link-template.php
@@ -1350,7 +1350,7 @@ function get_edit_post_link( $id = 0, $context = 'display' ) {
 		return;
 	}
 
-	if ( ! current_user_can( 'edit_post', $post->ID ) ) {
+	if ( ! ( current_user_can( 'edit_post', $post->ID ) || apply_filters( 'can_view_edit_post_link', false , $post->ID ) ) ) {
 		return;
 	}
 
