Title: wpcf7_add_shortcode deprecated
Last modified: October 1, 2019

---

# wpcf7_add_shortcode deprecated

 *  Resolved [Anastasiia](https://wordpress.org/support/users/anastasiiaa/)
 * (@anastasiiaa)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/wpcf7_add_shortcode-deprecated-2/)
 * 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](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/wpcf7_add_shortcode-deprecated-2/#post-12013125)
 * Hello [@anastasiiaa](https://wordpress.org/support/users/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
    -  This reply was modified 6 years, 8 months ago by [Danny van Kooten](https://wordpress.org/support/users/dvankooten/).
 *  Thread Starter [Anastasiia](https://wordpress.org/support/users/anastasiiaa/)
 * (@anastasiiaa)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/wpcf7_add_shortcode-deprecated-2/#post-12045559)
 * 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.

 * ![](https://ps.w.org/mailchimp-for-wp/assets/icon-256x256.png?rev=1224577)
 * [MC4WP: Mailchimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-wp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Anastasiia](https://wordpress.org/support/users/anastasiiaa/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/wpcf7_add_shortcode-deprecated-2/#post-12045559)
 * Status: resolved