Codex tools: Log in
Languages: English • 日本語 • (Add your language)
Contents |
Displays a link to edit the current post, if a user is logged in and allowed to edit the post. It must be within The Loop.
Use get_edit_post_link to retrieve the url.
<?php edit_post_link( $link, $before, $after, $id ); ?>
__('Edit This')
Displays edit post link using defaults.
<?php edit_post_link(); ?>
Displays edit post link, with link text "edit", in a paragraph (<p>) tag.
<?php edit_post_link('edit', '<p>', '</p>'); ?>
id parameter.
edit_post_link() is located in wp-includes/link-template.php
edit_post_link(), edit_comment_link(), edit_tag_link(), edit_bookmark_link()