ngg_dlgallery_zip_before_send

The NextGEN Download Gallery ngg dlgallery zip before send hook.

Description

do_action( 'ngg_dlgallery_zip_before_send', (string) $zipname, (string) $filename, (unknown) $images ); 

Parameters (3)

0. $zipname (string)
The zipname.
1. $filename (string)
The filename.
2. $images (unknown)
The images.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'ngg_dlgallery_zip_before_send', $zipname, $filename, $images ); 
The following example is for adding a hook callback.
  1. // define the ngg_dlgallery_zip_before_send callback 
  2. function action_ngg_dlgallery_zip_before_send( $zipname, $filename, $images ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'ngg_dlgallery_zip_before_send', 'action_ngg_dlgallery_zip_before_send', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'ngg_dlgallery_zip_before_send', 'action_ngg_dlgallery_zip_before_send', 10, 3 ); 

Defined (1)

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

/includes/class.NextGENDownloadGallery.php  
  1. do_action('ngg_dlgallery_zip_before_send', $zipName, $filename, $images);