fs_init

The NextGEN Gallery fs init function.

Description

fs_init( (string) $slug, (number) $plugin_id, (string) $public_key, (constant) $is_live = true, (bool) $is_premium = true ); 

Parameters (5)

0. $slug (string)
The slug.
1. $plugin_id (number)
The plugin id.
2. $public_key (string)
The public key.
3. $is_live — Optional. (constant) => true
Is live or test plugin.
4. $is_premium — Optional. (bool) => true
Hints freemius if running the premium plugin or not.

Usage

  1. if ( !function_exists( 'fs_init' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextgen-gallery/freemius/start.php'; 
  3.  
  4. // The slug. 
  5. $slug = ''; 
  6.  
  7. // The plugin id. 
  8. $plugin_id = null; 
  9.  
  10. // The public key. 
  11. $public_key = ''; 
  12.  
  13. // Is live or test plugin. 
  14. $is_live = true; 
  15.  
  16. // Hints freemius if running the premium plugin or not. 
  17. $is_premium = true; 
  18.  
  19. // NOTICE! Understand what this does before running. 
  20. $result = fs_init($slug, $plugin_id, $public_key, $is_live, $is_premium); 
  21.  

Defined (1)

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

/freemius/start.php  
  1. function fs_init( $slug, $plugin_id, $public_key, $is_live = true, $is_premium = true ) { 
  2. $fs = Freemius::instance( $slug, true ); 
  3. $fs->init( $plugin_id, $public_key, $is_live, $is_premium ); 
  4.  
  5. return $fs;