• In function processor() the hook ngg_delete_picture is called after the image is destroyed:

    $mapper = C_Image_Mapper::get_instance();
    $mapper->destroy($this->pid);
    do_action(‘ngg_delete_picture’, $this->pid);

    In this way I won’t get image info.

    Instead, if the ngg_delete_picture hook is called before, I will get image info in this way:

    $image = $nggdb->find_image( $pid );

    File: /products/photocrati_nextgen/modules/ngglegacy/admin/manage.php

    http://wordpress.org/plugins/nextgen-gallery/

  • The topic ‘Move ngg_delete_picture hook before $mapper->destroy’ is closed to new replies.