Languages: English • 日本語 (Add your language)
Returns edit post url as string value, provided the current user has the 'edit_post' capability. To retrieve a URL without checking user capabilities use admin_url() instead.
Can be used within the WordPress loop or outside of it. Can be used with pages, posts, attachments, and revisions.
<?php echo get_edit_post_link( $id, $context ); ?>
get_edit_post_link() is located in wp-includes/link-template.php
Edit Link: edit_post_link(), edit_comment_link(), edit_tag_link(), edit_bookmark_link()