• Creator
    Topic
  • #31336
    Resolved pluginoven
    Participant

    I was not able to get the datepicker to use the language set in the WordPress General Settings.
    After searching I found this thread, but it did not offer any valid solution as MB Frontend Submission v3.1.4 was installed. I resolved the issue by adding the following to my child-theme:

    add_action( 'wp_print_footer_scripts', 'prefix_localize_jquery_ui_datepicker', 9 );
    function prefix_localize_jquery_ui_datepicker() {
        if ( ! function_exists( 'wp_localize_jquery_ui_datepicker' ) ) {
            return;
        }
        wp_localize_jquery_ui_datepicker();
    }

    Hope this helps someone else having to search for a solution.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #31345
    Long Nguyen
    Moderator

    Thanks for sharing the solution.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.