• Resolved valousal

    (@valentinanamorphik)


    Hi,

    Evolution request.

    Is it possible to add a filter on the “public_js” method of the “\srrc\RegisterScripts” class?

    $frontend_dependencies = ['jquery', 'ppress-flatpickr', 'ppress-select2'];
     if (ppress_is_my_account_page()) {
       $frontend_dependencies[] = 'wp-util';
    }
    
    $frontend_dependencies = apply_filters('ppress_public_js_dependencies', $frontend_dependencies);

    THANKS.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Evolution request #3 : Add a filter for dependencies enqueue script’ is closed to new replies.