ngg_fs_custom_connect_message

Customize the opt-in message.

Description

(string) ngg_fs_custom_connect_message( (string) $message, (string) $user_first_name, (string) $plugin_title, (string) $user_login, (string) $site_link, (string) $freemius_link ); 

Returns (string)

Parameters (6)

0. $message (string)
The message.
1. $user_first_name (string)
The user first name.
2. $plugin_title (string)
The plugin title.
3. $user_login (string)
The user login.
4. $site_link (string)
The site link.
5. $freemius_link (string)
The freemius link.

Usage

  1. if ( !function_exists( 'ngg_fs_custom_connect_message' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextgen-gallery/nggallery.php'; 
  3.  
  4. // The message. 
  5. $message = ''; 
  6.  
  7. // The user first name. 
  8. $user_first_name = ''; 
  9.  
  10. // The plugin title. 
  11. $plugin_title = ''; 
  12.  
  13. // The user login. 
  14. $user_login = ''; 
  15.  
  16. // The site link. 
  17. $site_link = ''; 
  18.  
  19. // The freemius link. 
  20. $freemius_link = ''; 
  21.  
  22. // NOTICE! Understand what this does before running. 
  23. $result = ngg_fs_custom_connect_message($message, $user_first_name, $plugin_title, $user_login, $site_link, $freemius_link); 
  24.  

Defined (1)

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

/nggallery.php  
  1. function ngg_fs_custom_connect_message( 
  2. $message,  
  3. $user_first_name,  
  4. $plugin_title,  
  5. $user_login,  
  6. $site_link,  
  7. $freemius_link 
  8. ) { 
  9. return sprintf( 
  10. __fs( 'hey-x' ) . '<br>' . 
  11. __( 'Allow %6$s to collect some usage data with %5$s to make the plugin even more awesome. If you skip this, that\'s okay! %2$s will still work just fine.', 'nggallery' ),  
  12. $user_first_name,  
  13. '<b>' . __('NextGEN Gallery', 'nggallery') . '</b>',  
  14. '<b>' . $user_login . '</b>',  
  15. $site_link,  
  16. $freemius_link,  
  17. '<b>' . __('Imagely', 'nggallery') . '</b>' 
  18. );