• Resolved Anastasiia

    (@anastasiiaa)


    Hi guys,

    Love your work!
    I have a little suggestion which I hope you can add in the next version of the plugin.
    I’m receiving this notice “PHP Notice: wpcf7_add_shortcode is deprecated since Contact Form 7 version 4.6!” and only your plugin using it on my site.
    I know you’re checking if the function exists, but it does exist and gives this notice and calls new function wpcf7_add_form_tag.
    After I’ve changed the function name in your class-cf7.php the notice disappeared.

    I understand that notice doesn’t matter but this notice spams in debug.log file a lot.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hello @anastasiiaa,

    What version of the plugin are you on? Because as of version 4.0.10 (released in December 2016), we are no longer using wpcf7_add_shortcode if the newer function wpcf7_add_form_tag is available.

    Please ensure you are on the latest version of our plugin and consider updating if you are not. The latest version is 4.6.1.

    If you don’t see an available update, please deactivate the plugin temporarily and then check for updates again.

    Cheers, Danny

    Thread Starter Anastasiia

    (@anastasiiaa)

    Hi Danny,

    Thank you for your reply!
    For some reason, I didn’t get updates alerts for some time and was on an old version. Installed the new one, everything is working great.

    Thanks,
    Anastasiia

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wpcf7_add_shortcode deprecated’ is closed to new replies.