/wp-content/plugins/wordpress-seo/admin/config-ui/fields/class-field-profile-url-twitter.php

https://bitbucket.org/carloskikea/helpet · PHP · 30 lines · 10 code · 4 blank · 16 comment · 0 complexity · 366cddba18b3d93cc993d58b1d1dad9b MD5 · raw file

  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin\ConfigurationUI
  6. */
  7. /**
  8. * Class WPSEO_Config_Field_Profile_URL_Twitter
  9. */
  10. class WPSEO_Config_Field_Profile_URL_Twitter extends WPSEO_Config_Field {
  11. /**
  12. * WPSEO_Config_Field_Profile_URL_Twitter constructor.
  13. */
  14. public function __construct() {
  15. parent::__construct( 'profileUrlTwitter', 'Input' );
  16. $this->set_property( 'label', __( 'Twitter Username', 'wordpress-seo' ) );
  17. }
  18. /**
  19. * Set adapter
  20. *
  21. * @param WPSEO_Configuration_Options_Adapter $adapter Adapter to register lookup on.
  22. */
  23. public function set_adapter( WPSEO_Configuration_Options_Adapter $adapter ) {
  24. $adapter->add_option_lookup( $this->get_identifier(), 'twitter_site' );
  25. }
  26. }