WordPress开发者和主题制作者的搜索引擎



get_linkrating ›

Since1.0.1
已弃用2.1.0
get_linkrating ( $link )
参数:
  • (object) $link Link object.
    Required: Yes
查看:
返回:
  • (mixed) Value of the 'link_rating' field, false otherwise.
定义在:
文档:

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