Codex

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

Function Reference/edit bookmark link

This page redirects to an external site: https://developer.wordpress.org/reference/functions/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

<code style="color: #000000"> <span style="color: #0000BB"><?php edit_bookmark_link</span><span style="color: #007700">( </span><span style="color: #0000BB">$link</span><span style="color: #007700">, </span><span style="color: #0000BB">$before</span><span style="color: #007700">, </span><span style="color: #0000BB">$after</span><span style="color: #007700">, </span><span style="color: #0000BB">$bookmark </span><span style="color: #007700">); </span><span style="color: #0000BB">?></span> </code>

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.