contact-form-7-datepicker
contact-form-7-datepicker copied to clipboard
WPCF7_Shortcode depreciated since Contact Form 7 ver. 4.6
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*');
Hi Peter Updated to the above code but my date picker is still not working. Could you have edited another file? Regards, Ben
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.
Thank you so much!!
@relu, do you mind taking a look at this? Thanks!
I'm facing the same issue as well. @relu, any chance you could fix this ?