get_linkrating

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

Description

get_linkrating( (object) $link ); 

Parameters (1)

0. $link (object)
Link object.

Usage

  1. if ( !function_exists( 'get_linkrating' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4. // Link object. 
  5. $link = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = get_linkrating($link); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/deprecated.php  
  1. function get_linkrating( $link ) { 
  2. _deprecated_function( __FUNCTION__, '2.1.0', 'sanitize_bookmark_field()' ); 
  3. return sanitize_bookmark_field('link_rating', $link->link_rating, $link->link_id, 'display');