WPSEO_Config_Field_Upsell_Configuration_Service

Class WPSEO_Config_Field_Upsell_Configuration_Service.

Defined (1)

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

/admin/config-ui/fields/class-field-upsell-configuration-service.php  
  1. class WPSEO_Config_Field_Upsell_Configuration_Service extends WPSEO_Config_Field { 
  2.  
  3. /** 
  4. * WPSEO_Config_Field_Upsell_Configuration_Service constructor. 
  5. */ 
  6. public function __construct() { 
  7. parent::__construct( 'upsellConfigurationService', 'HTML' ); 
  8.  
  9. $intro_text = sprintf( 
  10. /** translators: %1$s expands to Yoast SEO. */ 
  11. __( 'Welcome to the %1$s configuration wizard. In a few simple steps we\'ll help you configure your SEO settings to match your website\'s needs!', 'wordpress-seo' ),  
  12. 'Yoast SEO' 
  13. ); 
  14.  
  15. $upsell_text = sprintf( 
  16. /** Translators: %1$s expands to Yoast SEO, %2$s expands to Yoast SEO Premium, %3$s opens the link, %4$s closes the link. */ 
  17. __( 'While we strive to make setting up %1$s as easy as possible, we understand it can be daunting. If you*d rather have us set up %1$s for you (and get a copy of %2$s in the process), order our %3$s%1$s configuration service%4$s here!', 'wordpress-seo' ),  
  18. 'Yoast SEO',  
  19. 'Yoast SEO Premium',  
  20. '<a target="_blank" href="' . WPSEO_Shortlinker::get( 'https://yoa.st/configuration-package' ) . '">',  
  21. '</a>' 
  22. ); 
  23.  
  24. $html = '<p>' . esc_html( $intro_text ) . '</p>'; 
  25. $html .= '<p><em>' . wp_kses( $upsell_text, array( 
  26. 'a' => array( 
  27. 'target' => array( '_blank' ),  
  28. 'href' => array(),  
  29. ),  
  30. ) ) . '</em></p>'; 
  31.  
  32.  
  33. $this->set_property( 'html', $html );