Needs dependencies
-
Hi, 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
Vayuhttps://wordpress.org/plugins/surbma-datepicker-localization-for-gravity-forms/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Needs dependencies’ is closed to new replies.