WPSEO_Config_Field_Success_Message

Class WPSEO_Config_Field_Success_Message.

Defined (1)

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

/admin/config-ui/fields/class-field-success-message.php  
  1. class WPSEO_Config_Field_Success_Message extends WPSEO_Config_Field { 
  2.  
  3. /** 
  4. * WPSEO_Config_Field_Success_Message constructor. 
  5. */ 
  6. public function __construct() { 
  7. parent::__construct( 'successMessage', 'FinalStep' ); 
  8.  
  9. $success_message = sprintf( 
  10. /** translators: %1$s expands to Yoast SEO. */ 
  11. __( '%1$s will now take care of all the needed technical optimization of your site. To really improve your site\'s performance in the search results, it\'s important to start creating content that ranks well for keywords you care about. Check out this video in which we explain how to use the %1$s metabox when you edit posts or pages.', 'wordpress-seo' ),  
  12. 'Yoast SEO' 
  13. ); 
  14.  
  15. $this->set_property( 'title', 'You\'ve done it!' ); 
  16. $this->set_property( 'message', $success_message ); 
  17. $this->set_property( 'video', array( 
  18. 'url' => 'https://yoa.st/metabox-screencast',  
  19. 'title' => sprintf( 
  20. /** translators: %1$s expands to Yoast SEO. */ 
  21. __( '%1$s video tutorial', 'wordpress-seo' ),  
  22. 'Yoast SEO' 
  23. ),  
  24. );