• Resolved kisabelle

    (@kisabelle)


    Getting the following notices in my debug log on every page load (I have a contact form on most pages). Can we have this removed? The plugin is triggering the notice on itself and it’s filling up my debug log during local development and testing

    [27-Jul-2020 19:43:58 UTC] PHP Notice:  wpcf7_add_shortcode is <strong>deprecated</strong> since Contact Form 7 version 4.6! Use wpcf7_add_form_tag instead. in /Users/.../.../.../wp-content/plugins/contact-form-7/includes/functions.php on line 374
    

    Cheers and thanks for the great plugin

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

    (@takayukister)

    As the notice says, wpcf7_add_shortcode() is deprecated since Contact Form 7 4.6. Use wpcf7_add_form_tag() instead.

    Thread Starter kisabelle

    (@kisabelle)

    Hi Takayuki,

    I am only using wpcf7_add_form_tag. But I just ran a search for wpcf7_add_shortcode in my project and found a 3rd party plugin provided by my client’s CRM is using it – it all makes sense now!

    I might try to update the plugin to use the new function.

    Do you happen to have any instructions on how to upgrade to the new function? Can I just simply replace wpcf7_add_shortcode call with wpcf7_add_form_tag without any further changes?

    Thank you!

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Only the name has changed. Simply replace wpcf7_add_shortcode() with wpcf7_add_form_tag().

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

The topic ‘PHP Notices’ is closed to new replies.