WPSEO_Config_Field_Company_Or_Person

Class WPSEO_Config_Field_Company_Or_Person.

Defined (1)

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

/admin/config-ui/fields/class-field-company-or-person.php  
  1. class WPSEO_Config_Field_Company_Or_Person extends WPSEO_Config_Field_Choice { 
  2.  
  3. /** 
  4. * WPSEO_Config_Field_Company_Or_Person constructor. 
  5. */ 
  6. public function __construct() { 
  7. parent::__construct( 'publishingEntityType' ); 
  8.  
  9. $this->set_property( 'label', __( 'This data is shown as metadata in your site. It is intended to appear in Google\'s Knowledge Graph. You can be either a company, or a person, choose either:', 'wordpress-seo' ) ); 
  10.  
  11. $this->add_choice( 'company', __( 'Company', 'wordpress-seo' ) ); 
  12. $this->add_choice( 'person', __( 'Person', 'wordpress-seo' ) ); 
  13.  
  14. /** 
  15. * @param WPSEO_Configuration_Options_Adapter $adapter Adapter to register lookup on. 
  16. */ 
  17. public function set_adapter( WPSEO_Configuration_Options_Adapter $adapter ) { 
  18. $adapter->add_yoast_lookup( $this->get_identifier(), 'wpseo', 'company_or_person' );