Codex tools: Log in / create account
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.
<?php edit_post_link('link', 'before', 'after'); ?>
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>'); ?>
edit_post_link, edit_comment_link, link_pages, wp_link_pages, get_year_link, get_month_link, get_day_link