ngg_add_new_page

The NextCellent Gallery ngg add new page hook.

Description

apply_filters( 'ngg_add_new_page', (unknown) $page, (unknown) $this_gid ); 

Parameters (2)

0. $page (unknown)
The page.
1. $this_gid (unknown)
The this gid.

Usage

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

Defined (1)

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

/admin/manage/class-ngg-image-manager.php  
  1. $page = apply_filters('ngg_add_new_page', $page, $this->gid);