/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
- <?php
- /**
- * WPSEO plugin file.
- *
- * @package WPSEO\Admin\ConfigurationUI
- */
- /**
- * Class WPSEO_Config_Field_Profile_URL_Twitter
- */
- class WPSEO_Config_Field_Profile_URL_Twitter extends WPSEO_Config_Field {
- /**
- * WPSEO_Config_Field_Profile_URL_Twitter constructor.
- */
- public function __construct() {
- parent::__construct( 'profileUrlTwitter', 'Input' );
- $this->set_property( 'label', __( 'Twitter Username', 'wordpress-seo' ) );
- }
- /**
- * Set adapter
- *
- * @param WPSEO_Configuration_Options_Adapter $adapter Adapter to register lookup on.
- */
- public function set_adapter( WPSEO_Configuration_Options_Adapter $adapter ) {
- $adapter->add_option_lookup( $this->get_identifier(), 'twitter_site' );
- }
- }