wpseo_tax_adminbar_content_score

Returns the Content score element for the adminbar.

Description

(string) wpseo_tax_adminbar_content_score(); 

Returns (string)


Usage

  1. if ( !function_exists( 'wpseo_tax_adminbar_content_score' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yoast-seo/inc/wpseo-non-ajax-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wpseo_tax_adminbar_content_score(); 
  7.  

Defined (1)

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

/inc/wpseo-non-ajax-functions.php  
  1. function wpseo_tax_adminbar_content_score() { 
  2. $rating = 0; 
  3.  
  4. if ( is_tax() || is_category() || is_tag() ) { 
  5. $rating = WPSEO_Taxonomy_Meta::get_meta_without_term( 'content_score' ); 
  6.  
  7. return wpseo_adminbar_score( $rating );