• Resolved tom3r

    (@tom3r)


    Hello!

    Thank you for this great plugin. It is exactly what I was looking for.

    Unfortunately I have to make a change in the js code for specific behaviour. It would be amazing to have a filter in the function qib_enqueue_script() so that the wc_enqueue_js could be changed safely and have the changes stay even at plugin updates.

    Is it possible to add this hook in the near future?

    Thank you so much in advance and keep up the good work!

    Best wishes,
    Tamas

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author taisho

    (@taisho)

    Hello,

    this can be implemented in the release in 1-2 weeks (one release is tomorrow / Monday). You’ve mentioned both a hook and a filter, which one do you really need? If hook, here would you need it placed? If a filter, what variables would you like to replace with custom ones?

    Best regards,

    Ryszard

    • This reply was modified 5 years, 4 months ago by taisho.
    Thread Starter tom3r

    (@tom3r)

    Hi Taisho!

    Thanks for your answer.

    I modified the plugin with the below code and I’ve added the action ‘custom_qib_enqueue_script’ to my functions.php where the ‘wc_enqueue_js(… ‘ is modified as I needed.

    function qib_enqueue_script() {

    // Custom Code
    if (has_action(‘custom_qib_enqueue_script’)) {
    do_action(‘custom_qib_enqueue_script’);
    return;
    }

    wc_enqueue_js( ‘ ……..

    I hope this answers your question, but please let me know if further clarification is needed.

    Thanks a lot and looking forward for this update!

    Thread Starter tom3r

    (@tom3r)

    Hello Taisho!

    I am just checking in with you, about the hook we talked earlier. Is there any news about this update or the way it will be implemented?

    Thanks,
    Tamas

    Plugin Author taisho

    (@taisho)

    Hello, I plan to release the patch this weekend, together with the final fix for translate.wordpress problems. I want to add a few hooks.

    Plugin Author taisho

    (@taisho)

    Yesterday I almost finished the release but in the end I decided that I will use no hooks and only filters to remove, modify or add jQuery.

    I will make the update today.

    Thread Starter tom3r

    (@tom3r)

    Hello Taisho,

    Thank you for your answer. From my part I think that’s okay as well, since the purpose is to be able to modify the jQeury. Thank you for implementing this.

    When do you think this update would come out?

    Thanks!

    Plugin Author taisho

    (@taisho)

    I’ve released the update, sorry for the wait! I’ll add a filter or filters for jQuery related to archives next time.

    • This reply was modified 5 years, 3 months ago by taisho.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Looking for Hooks’ is closed to new replies.