apply_filters( ‘edit_post_link’, string $link, int $post_id, string $text )

In this article

Filters the post edit link anchor tag.

Parameters

$linkstring
Anchor tag for the edit link.
$post_idint
Post ID.
$textstring
Anchor text.

Source

echo $before . apply_filters( 'edit_post_link', $link, $post->ID, $text ) . $after;

Changelog

VersionDescription
2.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.