wpml_post_language_details

The NextGEN Gallery wpml post language details hook.

Description

apply_filters( 'wpml_post_language_details', (null) $null, (unknown) $displayed_gallery_id ); 

Parameters (2)

0. $null (null) => null
The null.
1. $displayed_gallery_id (unknown)
The displayed gallery id.

Usage

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

Defined (2)

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

/products/photocrati_nextgen/modules/i18n/module.i18n.php  
  1. $displayed_gallery_lang = apply_filters('wpml_post_language_details', null, $displayed_gallery->ID); 
  1. $post_language = apply_filters('wpml_post_language_details', null, $post_id);