Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

WPCF7_Shortcode depreciated since Contact Form 7 ver. 4.6 #178

Open
PeterAtFulcrum opened this issue Feb 23, 2017 · 5 comments
Open

WPCF7_Shortcode depreciated since Contact Form 7 ver. 4.6 #178

PeterAtFulcrum opened this issue Feb 23, 2017 · 5 comments

Comments

@PeterAtFulcrum
Copy link

Hi,

As heading said, as of Contact Form 7 ver. 4.6 WPCF7_Shortcode and of course wpcf7_add_shortcode are deprecated.
I was able to fix this issue by updating modules/date.php file
on line 32 replaced $tag = new WPCF7_Shortcode($tag); with $tag = new WPCF7_FormTag( $tag );
and on lines 148,149 replaced
wpcf7_remove_shortcode('date');
wpcf7_remove_shortcode('date*');
with
wpcf7_remove_form_tag('date');
wpcf7_remove_form_tag('date*');

@benclintz
Copy link

Hi Peter
Updated to the above code but my date picker is still not working. Could you have edited another file?
Regards,
Ben

@PeterAtFulcrum
Copy link
Author

Hi Ben,
Definitely was wp-content/plugins/contact-form-7-datepicker/modules/date.php. I'm attaching my copy of the file so you can compare with yours.
Of course it could be something else that causing problem.

date.php.zip

@DavidReyesGerman
Copy link

Thank you so much!!

@tyrann0us
Copy link

@relu, do you mind taking a look at this?
Thanks!

@dregad
Copy link

dregad commented Sep 26, 2018

I'm facing the same issue as well. @relu, any chance you could fix this ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants