ACF PRO + wc_appointment_form_params

Issue #51 resolved
johannesmutter created an issue

On edit appointment page datepicker doesn’t work when ACF Pro is installed.

$( '.date-picker' ).datepicker({
    dateFormat: 'yy-mm-dd',
    numberOfMonths: 1,
    showButtonPanel: true,
    closeText: wc_appointment_form_params.closeText,

post.php?post=13&action=edit:1923 Uncaught ReferenceError: wc_appointment_form_params is not defined

Line 356 - 365 are not necessary as date-picker is already translated globally. So removing these lines fixes this error.

Comments (2)

  1. Željan Topić

    I'll remove all datepicker translation options from all datepickers after WordPress 4.6 is live and stable.

  2. Log in to comment