PageRenderTime 21ms CodeModel.GetById 14ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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/**
 9 * Class WPSEO_Config_Field_Profile_URL_Twitter
10 */
11class WPSEO_Config_Field_Profile_URL_Twitter extends WPSEO_Config_Field {
12
13	/**
14	 * WPSEO_Config_Field_Profile_URL_Twitter constructor.
15	 */
16	public function __construct() {
17		parent::__construct( 'profileUrlTwitter', 'Input' );
18
19		$this->set_property( 'label', __( 'Twitter Username', 'wordpress-seo' ) );
20	}
21
22	/**
23	 * Set adapter
24	 *
25	 * @param WPSEO_Configuration_Options_Adapter $adapter Adapter to register lookup on.
26	 */
27	public function set_adapter( WPSEO_Configuration_Options_Adapter $adapter ) {
28		$adapter->add_option_lookup( $this->get_identifier(), 'twitter_site' );
29	}
30}