I haven’t seen this listed anywhere so I figured I’d give a little hand to the WordPress community.
As you may or may not know, the best way to retrieve bookmarks (listed as Links in the admin panel) is to use the get_bookmarks() method.
Here are the attributes of the bookmark object that it returns:
link_id (int) – ID of the link
link_url (string) – URL of the link
link_name (string) – link name
link_image (string) – link image URL
link_target (string) – link _target
link_description (string) – link description
link_visible (string) – visible Y or N
link_owner (int) – link owner ID (you can retrieve more information about the owner with get_userdata());
link_rating (int) – link rating (specified by you), 0-10
link_updated (string) – last updated date (in 0000-00-00 00:00:00 format)
link_rel (string) – link relationship (as specified by the Link Relationship (XFN) box
link_notes (string) – link notes
link_rss (string) – link RSS url
I hope you guys found this useful! If you ever need to figure out the attributes of an object in PHP, use var_dump(). It tells you everything there is to know about your given variable.
