WordPress Media Gallery in plugins

Version: 1.0
License: Creative Commons License
Price: Free
# Downloads: 557
Compatible with: IE7, IE8, IE9, IE10, Firefox, Safari, Opera, Chrome

This plugin serves as a documented example of using WordPress’s built-in Media Gallery in plugins. It only uses filters and hooks to achieve this without any JavaScript hacks or other tricks.

No new admin menu is created on installation. The only new thing will be a panel in post/page editing with some information and a button that when clicked will open WordPress Media Gallery and each image will have instead of “Insert into post” a custom link that on click will send an AJAX request back to the plugin.

Whole plugin code with explanations and hints can be read here: How to use WordPress Media Gallery in plugins

Changelog

  • 1.0

    - Initial release