Conversation
supportHi, great idea for a plugin and thanks for sharing! However, it doesn’t really work with this dependency: array( ‘gform_datepicker_init’ ) It loads before the datepicker files and hence it will not work properly. So when the plugin loads the datepicker localization file, it is better to do something like this: ´ wp_enqueue_script( ‘surbma-datepicker-localization-for-gravity-forms’, plugins_url( ”, __FILE__ ) . ‘/js/datepicker-‘ . substr( get_locale(), 0, 2 ) . ‘.js’, array( ‘gform_datepicker_init’ ) ); ´ Thanks Vayu https://wordpress.org/plugins/surbma-datepicker-localization-for-gravity-forms/
Hi Vayu, good catch! 🙂 Thank you very much for the fix also! I have already updated the plugin with your fix.
Hi Vayu, good catch! 🙂 Thank you very much for the fix also! I have already updated the plugin with your fix.