<content>

The Yoast SEO content shortcode.


Usage

  1. // assign value 
  2. $content = 'dynamic_tag'; 
  3.  
  4. // basic usage 
  5. echo do_shortcode("[$content]"); 
  1. // assign value 
  2. $content = 'dynamic_tag'; 
  3.  
  4. // variable usage 
  5. $result = do_shortcode("[$content]"); 
  6. echo $result;  

Defined (1)

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

/admin/recalculate/class-recalculate-posts.php  
  1. /* @param WP_Post $item The Post object the content comes from. 
  2. */ 
  3. $content = apply_filters( 'wpseo_post_content_for_recalculation', $content, $item ); 
  4.  
  5. // Apply shortcodes. 
  6. $content = do_shortcode( $content ); 
  7.  
  8. return array( 
  9. 'post_id' => $item->ID,  
  10. 'text' => $content,  
  11. 'keyword' => $focus_keyword,