WPSEO_Taxonomy_Content_Fields

This class parses all the values for the general tab in the Yoast SEO settings metabox.

Defined (1)

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

/admin/taxonomy/class-taxonomy-content-fields.php  
  1. class WPSEO_Taxonomy_Content_Fields extends WPSEO_Taxonomy_Fields { 
  2.  
  3. /** 
  4. * Returns array with the fields for the general tab 
  5. * @return array 
  6. */ 
  7. public function get() { 
  8. $fields = array( 
  9. 'snippet' => $this->get_field_config( 
  10. __( 'Snippet editor', 'wordpress-seo' ),  
  11. '',  
  12. 'snippetpreview',  
  13. array( 
  14. 'help-button' => __( 'Show information about the snippet editor', 'wordpress-seo' ),  
  15. /** translators: 1: link open tag; 2: link close tag. */ 
  16. 'help' => sprintf( __( 'This is a rendering of what this post might look like in Google\'s search results. %1$sLearn more about the Snippet Preview%2$s.', 'wordpress-seo' ), '<a target="_blank" href="' . WPSEO_Shortlinker::get( 'https://yoa.st/snippet-preview' ) . '">', '</a>' ),  
  17. ),  
  18. 'focuskw' => $this->get_field_config( 
  19. __( 'Focus keyword', 'wordpress-seo' ),  
  20. '',  
  21. 'focuskeyword',  
  22. array( 
  23. 'help-button' => __( 'Show information about the focus keyword', 'wordpress-seo' ),  
  24. /** translators: 1: link open tag; 2: link close tag. */ 
  25. 'help' => sprintf( __( 'Pick the main keyword or keyphrase that this post/page is about. %1$sLearn more about the Focus Keyword%2$s.', 'wordpress-seo' ), '<a target="_blank" href="' . WPSEO_Shortlinker::get( 'https://yoa.st/focus-keyword' ) . '">', '</a>' ),  
  26. ),  
  27. 'analysis' => $this->get_field_config( 
  28. __( 'Analysis', 'wordpress-seo' ),  
  29. '',  
  30. 'pageanalysis',  
  31. array( 
  32. 'help-button' => __( 'Show information about the content analysis', 'wordpress-seo' ),  
  33. /** translators: 1: link open tag; 2: link close tag. */ 
  34. 'help' => sprintf( __( 'This is the content analysis, a collection of content checks that analyze the content of your page. %1$sLearn more about the Content Analysis Tool%2$s.', 'wordpress-seo' ), '<a target="_blank" href="' . WPSEO_Shortlinker::get( 'https://yoa.st/content-analysis' ) . '">', '</a>' ),  
  35. ),  
  36. 'title' => $this->get_field_config( 
  37. '',  
  38. '',  
  39. 'hidden',  
  40. '' 
  41. ),  
  42. 'desc' => $this->get_field_config( 
  43. '',  
  44. '',  
  45. 'hidden',  
  46. '' 
  47. ),  
  48. 'linkdex' => $this->get_field_config( 
  49. '',  
  50. '',  
  51. 'hidden',  
  52. '' 
  53. ),  
  54. 'content_score' => $this->get_field_config( 
  55. '',  
  56. '',  
  57. 'hidden',  
  58. '' 
  59. ),  
  60. ); 
  61.  
  62. return $this->filter_hidden_fields( $fields );