[Plugin: NextGEN Gallery] Hook/filter request on media upload
-
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_nextgenOn 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
The topic ‘[Plugin: NextGEN Gallery] Hook/filter request on media upload’ is closed to new replies.