WordPress at a glance
function is not described

get_linkrating() WP 1.0.1

Deprecated from version 2.1.0. It is no longer supported and can be removed in future releases. Use sanitize_bookmark_field() instead.

Legacy function that retrieved the value of a link's link_rating field.

No Hooks.

Return

Mixed. Value of the 'link_rating' field, false otherwise.

Usage

get_linkrating( $link );
$link(object) (required)
Link object.

Notes

  • See: sanitize_bookmark_field()

Changelog

Since 1.0.1 Introduced.
Deprecated Since 2.1.0 Use sanitize_bookmark_field()

Code of get_linkrating() WP 5.7

<?php
function get_linkrating( $link ) {
	_deprecated_function( __FUNCTION__, '2.1.0', 'sanitize_bookmark_field()' );
	return sanitize_bookmark_field('link_rating', $link->link_rating, $link->link_id, 'display');
}