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:
  • 6: .

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.

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