get_edit_bookmark_link( int|stdClass $link )
Displays the edit bookmark link.
Description Description
Parameters Parameters
- $link
-
(int|stdClass) (Optional) Bookmark ID. Default is the id of the current bookmark.
Return Return
(string|void) The edit bookmark link URL.
Source Source
File: wp-includes/link-template.php
function get_edit_bookmark_link( $link = 0 ) { $link = get_bookmark( $link ); if ( ! current_user_can( 'manage_links' ) ) { return; } $location = admin_url( 'link.php?action=edit&link_id=' ) . $link->link_id; /** * Filters the bookmark edit link. * * @since 2.7.0 * * @param string $location The edit link. * @param int $link_id Bookmark ID. */ return apply_filters( 'get_edit_bookmark_link', $location, $link->link_id ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |