ngg_swf_file_types

The NextCellent Gallery ngg swf file types hook.

Description

apply_filters( 'ngg_swf_file_types', (string) $jpg_jpeg_gif_png_jpg_jpeg_gif_png ); 

Parameters (1)

0. $jpg_jpeg_gif_png_jpg_jpeg_gif_png (string) => '*.jpg;*.jpeg;*.gif;*.png;*.JPG;*.JPEG;*.GIF;*.PNG'
The jpg jpeg gif png jpg jpeg gif png.

Usage

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

Defined (1)

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

/admin/class-ngg-adder.php  
  1. $file_types = apply_filters( 'ngg_swf_file_types', '*.jpg;*.jpeg;*.gif;*.png;*.JPG;*.JPEG;*.GIF;*.PNG' );