edit_bookmark_link()
Displays the edit bookmark link anchor content.
Uses: get_edit_bookmark_link()
Hooks from the function
Return
null
. Nothing.
Usage
edit_bookmark_link( $link, $before, $after, $bookmark );
- $link(string)
- Anchor text. If empty. Default empty.
Default: 'Edit This' - $before(string)
- Display before edit link.
Default: '' - $after(string)
- Display after edit link.
Default: '' - $bookmark(int)
- Bookmark ID.
Default: current bookmark
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. |