ngg_get_image_size_params

The NextGEN Gallery ngg get image size params hook.

Description

apply_filters( 'ngg_get_image_size_params', (unknown) $params, (unknown) $size, (unknown) $image ); 

Parameters (3)

0. $params (unknown)
The params.
1. $size (unknown)
The size.
2. $image (unknown)
The image.

Usage

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

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_data/package.module.nextgen_data.php  
  1. $params = apply_filters('ngg_get_image_size_params', $params, $size, $image);