contact-form-7-datepicker icon indicating copy to clipboard operation
contact-form-7-datepicker copied to clipboard

WPCF7_Shortcode depreciated since Contact Form 7 ver. 4.6

Open PeterAtFulcrum opened this issue 7 years ago • 5 comments

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*');

PeterAtFulcrum avatar Feb 23 '17 18:02 PeterAtFulcrum

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

benclintz avatar Feb 27 '17 08:02 benclintz

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

PeterAtFulcrum avatar Feb 27 '17 15:02 PeterAtFulcrum

Thank you so much!!

DavidReyesGerman avatar May 20 '17 18:05 DavidReyesGerman

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

tyrann0us avatar Nov 20 '17 10:11 tyrann0us

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

dregad avatar Sep 26 '18 07:09 dregad