WordPress at a glance
function is not described

get_linkrating() WP 1.0.1

Deprecated in 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.

  • See: sanitize_bookmark_field()

No Hooks.


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


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

Code of get linkrating: wp-includes/deprecated.php WP 5.2.1

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');