get_linkrating()
Deprecated since 2.1.0. It is no longer supported and may 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.
Returns
Mixed. Value of the 'link_rating' field, false otherwise.
Usage
get_linkrating( $link );
- $link(object) (required)
- Link object.
Notes
Changelog
| Since 1.0.1 | Introduced. |
| Deprecated since 2.1.0 | Use sanitize_bookmark_field() |
get_linkrating() get linkrating code WP 6.9
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');
}