fs_track_new_gallery

Send custom event about 1st gallery creation.

Description

fs_track_new_gallery(); 

Usage

  1. if ( !function_exists( 'fs_track_new_gallery' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextgen-gallery/nggallery.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = fs_track_new_gallery(); 
  7.  

Defined (1)

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

/nggallery.php  
  1. function fs_track_new_gallery() { 
  2. global $ngg_fs; 
  3.  
  4. $galleries = C_Gallery_Mapper::get_instance()->count(); 
  5. if (1 == $galleries) { 
  6. // Only track event on 1st gallery creation. 
  7. $ngg_fs->track_event_once( 'new_gallery' );