ngg_before_save_thumbnail

The NextGEN Gallery ngg before save thumbnail hook.

Description

apply_filters( 'ngg_before_save_thumbnail', (unknown) $thumbnail ); 

Parameters (1)

0. $thumbnail (unknown)
The thumbnail.

Usage

To run the hook, copy the example below.
  1. $thumbnail = apply_filters( 'ngg_before_save_thumbnail', $thumbnail ); 
  2.  
  3. if ( !empty( $thumbnail ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the ngg_before_save_thumbnail callback 
  2. function filter_ngg_before_save_thumbnail( $thumbnail ) { 
  3. // make filter magic happen here... 
  4. return $thumbnail
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ngg_before_save_thumbnail', 'filter_ngg_before_save_thumbnail', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ngg_before_save_thumbnail', 'filter_ngg_before_save_thumbnail', 10, 1 ); 

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_data/package.module.nextgen_data.php  
  1. $thumbnail = apply_filters('ngg_before_save_thumbnail', $thumbnail);