WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. muh
    Member
    Posted 1 year 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,
    Simon

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic