get_linkrating

函数


get_linkrating ( $link )
参数
  • (object)
    $link
    Link object.
    Required:
返回值
  • (mixed) Value of the ‘link_rating’ field, false otherwise.
相关
  • sanitize_bookmark_field()
定义位置
  • wp-includes/deprecated.php
    , line 1097
引入
1.0.1
弃用
2.1.0

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

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