get_edit_post_link WordPress Filter Hook
The get_edit_post_link Wordpress hook is a great way to get a link to edit a post in the Wordpress admin. This can be useful if you want to create a custom front-end for your site and need to give users the ability to edit their posts.
apply_filters( 'get_edit_post_link', string $link , int $post_id , string $context ) #
Filters the post edit link.
Parameters
- $link
(string)The edit link.
- $post_id
(int)Post ID.
- $context
(string)The link context. If set to 'display' then ampersands are encoded.
Source
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |