get_edit_post_link


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

Parameters:
  • (int|WP_Post) id 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 is invalid or does not allow an editing UI.
Defined at:

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

Related Functions

get_next_post_link, edit_post_link, get_next_posts_link, get_edit_tag_link, get_delete_post_link

Top Google Results

User discussions

wpseek mobile