• This is the error am getting when contact form 7 date picker plugin is activated.
    Notice: WPCF7_Shortcode is deprecated since Contact Form 7 version 4.6! Use WPCF7_FormTag instead. in C:\xampp\htdocs\resturantandcafe\wp-content\plugins\contact-form-7\includes\functions.php on line 351

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

    (@takayukister)

    Yes, WPCF7_Shortcode is deprecated. See https://contactform7.com/2016/12/03/contact-form-7-46/

    The captcha module is still using WPCF7_Shortcode.

    Hey, everyone.

    I fixed this error by changing 2 lines in the plugin. Just in case, the plugin file is located in \wp-content\plugins\contact-form-7-dynamic-text-extension\contact-form-7-dynamic-text-extension.php.

    Changed line 39 from
    wpcf7_add_shortcode(
    to
    wpcf7_add_form_tag(

    Changed line 44 from
    $tag = new WPCF7_Shortcode( $tag );
    to
    $tag = new WPCF7_FormTag( $tag );

    I hope this is gonna be fixed in the next update…

    • This reply was modified 8 years, 3 months ago by Dmitry_Demir.
    • This reply was modified 8 years, 3 months ago by Dmitry_Demir.
    • This reply was modified 8 years, 3 months ago by Dmitry_Demir.

    Oops, that post was meant for Contact Form 7 Dynamic Text Extension thread, sorry. Shouldn’t type in a hurry…

    I think in most (if not all) cases a search and replace for wpcf7_add_shortcode and WPCF7_Shortcode should fix the error. Sublime Text does this job very fast. Make sure to notify the plugin creators about the needed changes though.

    • This reply was modified 8 years, 3 months ago by Dmitry_Demir.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘contact form 7 has deprecated function’ is closed to new replies.