NextGEN Gallery
Hook/filter request on media upload (1 post)

  1. muh
    Posted 2 years ago #

    I've replaced the default tinymce Editor with a powerfull bbcode editor for security reasons. I managed to embed in WordPress with all plugins except one. I had to insert an additional filter into the ngg.

    File: nextgen-gallery/admin/media-upload.php
    Function: media_upload_nextgen

    On line ~50 (right before the return statement [return media_send_to_editor($html);]) I insered the following code snippet:
    $html = apply_filters('before_media_send_to_editor', $html, $send_id);

    I would be glad to see this or a similar filter in the official ngg releases. It allows other plugins to modify the string before it will be sent to the editor.

    Thanks in advance,


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic