WordPress at a glance
function is not described

wp_get_link_cats() WP 2.1.0

Retrieves the link categories associated with the link specified.

No Hooks.


Array. The requested link's categories


wp_get_link_cats( $link_id );
Link ID to look up
Default: 0

Code of wp get link cats: wp-admin/includes/bookmark.php WP 5.2.1

function wp_get_link_cats( $link_id = 0 ) {
	$cats = wp_get_object_terms( $link_id, 'link_category', array( 'fields' => 'ids' ) );
	return array_unique( $cats );