ngg_atp_show_display_type

The NextGEN Gallery ngg atp show display type hook.

Description

apply_filters( 'ngg_atp_show_display_type', (unknown) $available, (unknown) $display_type ); 

Parameters (2)

0. $available (unknown)
The available.
1. $display_type (unknown)
The display type.

Usage

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

Defined (1)

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

/products/photocrati_nextgen/modules/attach_to_post/package.module.attach_to_post.php  
  1. if (!apply_filters('ngg_atp_show_display_type', $available, $display_type)) {