edit_post_link WordPress Filter Hook
The edit_post_link hook is used to display an edit link for posts, pages, and custom post types. This hook can be used in conjunction with the get_edit_post_link function to check whether the current user has permission to edit the post.
apply_filters( 'edit_post_link', string $link , int $post_id , string $text ) #
Filters the post edit link anchor tag.
Parameters
- $link
(string)Anchor tag for the edit link.
- $post_id
(int)Post ID.
- $text
(string)Anchor text.
Source
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |