WPSEO_Config_Field_Upsell_Site_Review

Class WPSEO_Config_Field_Upsell_Site_Review.

Defined (1)

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

/admin/config-ui/fields/class-field-upsell-site-review.php  
  1. class WPSEO_Config_Field_Upsell_Site_Review extends WPSEO_Config_Field { 
  2.  
  3. /** 
  4. * WPSEO_Config_Field_Upsell_Site_Review constructor. 
  5. */ 
  6. public function __construct() { 
  7. parent::__construct( 'upsellSiteReview', 'HTML' ); 
  8.  
  9. $upsell_text = sprintf( 
  10. /** translators: %1$s will be a link to a review explanation page. Text between %2$s and %3$s will be a link to an SEO copywriting course page. */ 
  11. __( 'If you want more help creating awesome content, check out our %2$sSEO copywriting course%3$s. Do you want to know all about the features of the plugin, consider doing our %1$s!', 'wordpress-seo' ),  
  12. '<a href="' . WPSEO_Shortlinker::get( 'https://yoa.st/yoastseotraining' ) . '" target="_blank">Yoast SEO for WordPress training</a>',  
  13. '<a href="' . WPSEO_Shortlinker::get( 'https://yoa.st/configuration-wizard-copywrite-course-link' ) . '" target="_blank">',  
  14. '</a>' 
  15. ); 
  16.  
  17. $html = '<p>' . 
  18. wp_kses( $upsell_text, array( 
  19. 'a' => array( 
  20. 'href' => array(),  
  21. 'target' => array( '_blank' ),  
  22. ),  
  23. ) ) . 
  24. '</p>'; 
  25.  
  26. $this->set_property( 'html', $html );