On this page
get_link_to_edit( int|stdClass $link ): object
Retrieves link data based on its ID.
Parameters
$linkint|stdClass Required-
Link ID or object to retrieve.
Return
object Link object for editing.
Source
File: wp-admin/includes/bookmark.php. View all references
function get_link_to_edit( $link ) {
return get_bookmark( $link, OBJECT, 'edit' );
}
Related
Uses
| Uses | Description |
|---|---|
| get_bookmark() wp-includes/bookmark.php | Retrieves bookmark data. |
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_link_to_edit