• Michael Beckwith

    (@tw2113)


    The BenchPresser

    Do you have any developer documentation that outlines well how to extend NGG for the 2.0.x line? Specifically upload forms come to mind, as the company I work for has a public uploader that is built for 1.x, but I can’t figure out for the life of me how we would revise it to officially work with 2.0.x.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @michael Beckwith – Thanks for opening up this topic, I have pointed it out to our developers. Please feel free to contact us with any specifics, as well, via our contact form here: http://nextgen-gallery.com/contact/

    Thanks!

    – Cais.

    Benjamin

    (@benjaminowens)

    I suppose it depends on what you are looking to do; the most generic answer would be that NextGen is built on an object framework called POPE (wp-content/plugins/nextgen-gallery/pope/) and the documentation for it is built into the unit tests. Unfortunately our emphasis on NextGen 2.0 has been on stability & performance and our POPE unit tests are now badly outdated (ignore any references to hooks as they have been removed) but reading them should tell you how the NextGen product/module/adapter/mixin pattern is handled.

    We don’t have any documentation on how to use our new API, but I can answer any specific questions. The WP-CLI module (in wp-content/plugins/nextgen-gallery/products/photocrati-nextgen/modules/wpcli/module.wpcli.php) has a wrapper method to create new galleries and import images from the filesystem, you may be able to use that as a reference for how to import images with NextGen 2.

    If you can or are willing to share your code with us I’d be glad to look it over and tell you how it needs to change.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Third party developer docs’ is closed to new replies.