WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/edit bookmark link

Description

Displays a link to edit the current bookmark, if the user is logged in and allowed to edit the bookmark. It must be within The Loop.

Use get_edit_bookmark_link to retrieve the url.

Usage

 <?php edit_bookmark_link$link$before$after$bookmark ); ?> 

Parameters

$link
(string) (optional) The link text.
Default: 'Edit This'
$before
(string) (optional) Text to put before the link text.
Default: None
$after
(string) (optional) Text to put after the link text.
Default: None
$bookmark
(int) (optional) Bookmark ID.
Default: Current bookmark ID.

Examples

Default Usage

Displays edit bookmark link using defaults.

<?php edit_bookmark_link(); ?>

Displays Edit Bookmark in Paragraph Tag

Displays edit bookmark link, with link text "edit bookmark", in a paragraph (<p>) tag.

<?php edit_bookmark_link('edit bookmark', '<p>', '</p>'); ?>

Change Log

Since: 2.7.0

Source File

edit_bookmark_link() is located in wp-includes/link-template.php.

Related

Edit Link: edit_post_link(), edit_comment_link(), edit_tag_link(), edit_bookmark_link()

See also index of Function Reference and index of Template Tags.