Title: (Request Feature) Adding an filter to render function
Last modified: July 4, 2019

---

# (Request Feature) Adding an filter to render function

 *  Resolved [wiloke](https://wordpress.org/support/users/wiloke/)
 * (@wiloke)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/request-feature-adding-an-filter-to-render-function/)
 * Hi there,
    First of all, thank for creating a useful plugin. We’re integrating
   the plugin to our project, because We are using React for our project, We have
   to use Rest API. The problem is the NextGen does not print scripts if it’s Rest
   API request:
 * products -> photocrati_nextgen -> modules -> nextgen_gallery_display -> package.
   module.nextgen_gallery_display.php -> On the line 1915
 *     ```
       if ((!defined('NGG_SKIP_LOAD_SCRIPTS') 
       || !NGG_SKIP_LOAD_SCRIPTS) 
       && !$this->is_rest_request()) {
         $controller->enqueue_frontend_resources($displayed_gallery);
       }
       ```
   
 * Can you please add apply_filters function here?
    Thank you
    -  This topic was modified 6 years, 11 months ago by [wiloke](https://wordpress.org/support/users/wiloke/).

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

 *  [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * (@mihaiimagely)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/request-feature-adding-an-filter-to-render-function/#post-11699493)
 * Hi [@wiloke](https://wordpress.org/support/users/wiloke/),
 * Our efforts in the forum are more in offering support in breaking down what could
   be the source of the conflict (i.e. check server settings, check for possible
   plugin or theme conflict). If it’s something quick, like some CSS to add or remove
   a border, that’s OK.
 * Thanks for your understanding
 *  Thread Starter [wiloke](https://wordpress.org/support/users/wiloke/)
 * (@wiloke)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/request-feature-adding-an-filter-to-render-function/#post-11699510)
 * Hi,
    Firstly, Thank for fast reply! Can you show me where can I put my request?
   Thanks
 *  [gabyimagely](https://wordpress.org/support/users/gabyimagely/)
 * (@gabyimagely)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/request-feature-adding-an-filter-to-render-function/#post-11700843)
 * Hi [@wiloke](https://wordpress.org/support/users/wiloke/)
 * We shared your concern with the developers to check if it’s something we need
   tp report as an “Issue” in our plugin.
    We’ll keep you posted.
 *  [gabyimagely](https://wordpress.org/support/users/gabyimagely/)
 * (@gabyimagely)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/request-feature-adding-an-filter-to-render-function/#post-11704841)
 * Hello [@wiloke](https://wordpress.org/support/users/wiloke/)
 * We are happy to help!
    Our developers indicated that you could add this to your
   wp-config.php file:
 * `define('NGG_SKIP_LOAD_SCRIPTS', FALSE);`
 * or have it defined at any point before NextGen’s shortcode is rendered.
 * We hope that this helps, feel free to write us back.

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

The topic ‘(Request Feature) Adding an filter to render function’ is closed to new
replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [gabyimagely](https://wordpress.org/support/users/gabyimagely/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/request-feature-adding-an-filter-to-render-function/#post-11704841)
 * Status: resolved