get_linkrating( object $link ): mixed

This function has been deprecated. Use sanitize_bookmark_field() instead.

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

Description

See also

Parameters

$linkobjectrequired
Link object.

Return

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

Source

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

Changelog

VersionDescription
2.1.0Use sanitize_bookmark_field()
1.0.1Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.