On this page
apply_filters( 'edit_post_link', string $link, int $post_id, string $text )
Filters the post edit link anchor tag.
Parameters
$linkstring-
Anchor tag for the edit link.
$post_idint-
Post ID.
$textstring-
Anchor text.
Source
File: wp-includes/link-template.php. View all references
echo $before . apply_filters( 'edit_post_link', $link, $post->ID, $text ) . $after;
Related
Used By
| Used By | Description |
|---|---|
| edit_post_link() wp-includes/link-template.php | Displays the edit post link for post. |
Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/edit_post_link