edit_bookmark_link()
Outputs a link to edit the current bookmark (link) if the user is authorized and has permission to edit.
Must be used inside the Bookmark (link) Loop.
Uses: get_edit_bookmark_link()
Hooks from the function
Returns
null. Outputs the HTML code for the link.
Usage
<?php edit_bookmark_link( $link, $before, $after, $bookmark ); ?>
- $link(string)
- Text of the link.
Default: '' - Edit This - $before(string)
- Text before the link.
Default: '' - $after(string)
- Text after the link.
Default: '' - $bookmark(number)
- ID of the bookmark to display the link for.
Default: current ID in the loop
Examples
#1 Let's display a link to edit the bookmark
<?php edit_bookmark_link(); ?>
#2 Let's display the edit link with the text "edit link"
And wrap it in the html tag <p>:
<?php edit_bookmark_link( 'edit link', '<p>', '</p>'); ?>
Changelog
| Since 2.7.0 | Introduced. |