On this page
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
$linkobject Required-
Link object.
Return
mixed Value of the 'link_rating' field, false otherwise.
Source
File: wp-includes/deprecated.php. View all references
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');
}
Related
Uses
| Uses | Description |
|---|---|
| sanitize_bookmark_field() wp-includes/bookmark.php | Sanitizes a bookmark field. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Used By
| Used By | Description |
|---|---|
| get_links() wp-includes/deprecated.php | Gets the links associated with category by ID. |
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Use sanitize_bookmark_field() |
| 1.0.1 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_linkrating