WPSEO_Config_Field_Profile_URL_Twitter

Class WPSEO_Config_Field_Profile_URL_Twitter.

Defined (1)

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

/admin/config-ui/fields/class-field-profile-url-twitter.php  
  1. class WPSEO_Config_Field_Profile_URL_Twitter extends WPSEO_Config_Field { 
  2.  
  3. /** 
  4. * WPSEO_Config_Field_Profile_URL_Twitter constructor. 
  5. */ 
  6. public function __construct() { 
  7. parent::__construct( 'profileUrlTwitter', 'Input' ); 
  8.  
  9. $this->set_property( 'label', __( 'Twitter Username', 'wordpress-seo' ) ); 
  10.  
  11. /** 
  12. * Set adapter 
  13. * @param WPSEO_Configuration_Options_Adapter $adapter Adapter to register lookup on. 
  14. */ 
  15. public function set_adapter( WPSEO_Configuration_Options_Adapter $adapter ) { 
  16. $adapter->add_yoast_lookup( $this->get_identifier(), 'wpseo_social', 'twitter_site' );