• gabron

    (@gabron)


    Hello, Is possible that you include apply_filters method because of removing jQuery library? I know there is

    apply_filters( 'wpcf7_load_js', WPCF7_LOAD_JS );

    But when I return false, then the contact form doesnt work. I need to only prevent jQuery and keep there contact-form-7 script. It would be great if possible. Now I have to hack it and comment out the

    wp_deregister_script( 'jquery-form' );
    wp_register_script( 'jquery-form',
    wpcf7_plugin_url( 'includes/js/jquery.form.min.js' ),
    array( 'jquery' ), '3.51.0-2014.06.20', true );

    By that hack I can not upgrade to new version…

    https://ww.wp.xz.cn/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    See Loading JavaScript and Stylesheet Only When it is Necessary

    I need to only prevent jQuery and keep there contact-form-7 script.

    It is impossible or makes no sense because the contact-form-7 script depends on jquery and jquery-form.

    Thread Starter gabron

    (@gabron)

    Of Course, Contact form 7 depends on jQuery, but when I already have jQuery in my WP and I dont want to put jQuery by Contact form because of jQuery conflict with Social sharing toolkit. What Should I do by you?

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

The topic ‘Turn off jQuery by filter [pull request]’ is closed to new replies.