Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » (Request Feature) Adding an filter to render function

  • Resolved wiloke

    (@wiloke)


    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 2 years, 10 months ago by wiloke.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support mihai-imagely

    (@mihaiimagely)

    Hi @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

    (@wiloke)

    Hi,
    Firstly, Thank for fast reply!
    Can you show me where can I put my request?
    Thanks

    Hi @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.

    Hello @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.