Support » Plugins » [nextgen-gallery] Add do_action(ngg_upload_complete)

  • Resolved comstar



    The several do_actions that you have created occur before the thumbnails are created in the image galleries. I needed a do_action hook after all of the thumbnails were made. Could you please add the following to your next release in the functions.php file:

    Line 208 after

    // now create thumbnails
    nggAdmin::do_ajax_operation( 'create_thumbnail' , $image_ids, __('Create new thumbnails','nggallery') );


    //add do_action hook
    do_action('ngg_upload_complete', $gallery_id, $new_images );

    Line 1010 after

    //add the preview image if needed
    nggAdmin::set_gallery_preview ( $galleryID );


    //add do_action hook
    do_action('ngg_upload_complete', $galleryID, $imagelist );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[nextgen-gallery] Add do_action(ngg_upload_complete)’ is closed to new replies.