get_edit_post_link
get_edit_post_link ( $post = 0, $context = 'display' )
Parameters:- (int|WP_Post) post Optional. Post ID or post object. Default is the global `$post`.
- (string) context Optional. How to output the '&' character. Default '&'.
Returns:- (string|null) The edit post link for the given post. Null if the post type does not exist or does not allow an editing UI.
Defined at:Change Log: - Introduced in WordPress: 2.3.0
- Deprecated in WordPress: —
Description
Retrieves the edit post link for post.Can be used within the WordPress loop or outside of it. Can be used with
pages, posts, attachments, revisions, global styles, templates, and template parts.