WordPress at a glance
filter is not described

get_edit_post_link filter-hook . WP 2.3.0

Filters the post edit link.


add_filter( 'get_edit_post_link', 'filter_function_name_2124', 10, 3 );
function filter_function_name_2124( $link, $post_id, $context ){
	// filter...

	return $link;
The edit link.
Post ID.
The link context. If set to 'display' then ampersands are encoded.

Where the hook is called

wp-includes/link-template.php 1378
return apply_filters( 'get_edit_post_link', $link, $post->ID, $context );

Where the hook is used (in WP core)

wp-includes/class-wp-customize-manager.php 1877
add_filter( 'get_edit_post_link', '__return_empty_string' );