ngg_delete_picture

The NextGEN Gallery ngg delete picture hook.

Description

do_action( 'ngg_delete_picture', (unknown) $this_pid, (unknown) $image ); 

Parameters (2)

0. $this_pid (unknown)
The this pid.
1. $image (unknown)
The image.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'ngg_delete_picture', $this_pid, $image ); 
The following example is for adding a hook callback.
  1. // define the ngg_delete_picture callback 
  2. function action_ngg_delete_picture( $this_pid, $image ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'ngg_delete_picture', 'action_ngg_delete_picture', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'ngg_delete_picture', 'action_ngg_delete_picture', 10, 2 ); 

Defined (3)

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

/products/photocrati_nextgen/modules/ngglegacy/admin/manage.php  
  1. do_action('ngg_delete_picture', $this->pid, $image); 
  1. do_action('ngg_delete_picture', $image->pid, $image); 
/products/photocrati_nextgen/modules/nextgen_xmlrpc/package.module.nextgen_xmlrpc.php  
  1. do_action('ngg_delete_picture', $ngg_image->{$ngg_image->id_field});