get_edit_post_link ( $post = 0, $context = 'display' )

  • (int|WP_Post) post Optional. Post ID or post object. Default is the global `$post`.
  • (string) context Optional. How to output the '&' character. Default '&'.
  • (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:


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, and revisions.

Related Functions

get_next_post_link, edit_post_link, get_edit_tag_link, get_next_posts_link, get_delete_post_link

Top Google Results

User discussions

wpseek mobile