WPSEO_Config_Field_Profile_URL_MySpace

Class WPSEO_Config_Field_Profile_URL_MySpace.

Defined (1)

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

/admin/config-ui/fields/class-field-profile-url-myspace.php  
  1. class WPSEO_Config_Field_Profile_URL_MySpace extends WPSEO_Config_Field { 
  2.  
  3. /** 
  4. * WPSEO_Config_Field_Profile_URL_MySpace constructor. 
  5. */ 
  6. public function __construct() { 
  7. parent::__construct( 'profileUrlMySpace', 'Input' ); 
  8.  
  9. $this->set_property( 'label', __( 'MySpace URL', 'wordpress-seo' ) ); 
  10. $this->set_property( 'pattern', '^https:\/\/myspace\.com\/([^/]+)\/$' ); 
  11.  
  12. /** 
  13. * Set adapter 
  14. * @param WPSEO_Configuration_Options_Adapter $adapter Adapter to register lookup on. 
  15. */ 
  16. public function set_adapter( WPSEO_Configuration_Options_Adapter $adapter ) { 
  17. $adapter->add_yoast_lookup( $this->get_identifier(), 'wpseo_social', 'myspace_url' );