Support

Account

Home Forums Backend Issues (wp-admin) Custom location rules – JS part Reply To: Custom location rules – JS part

  • I had hoped acf.doAction('refresh'); $(window).trigger('acfrefresh'); from acf-input.js might work, but it doesn’t seem to have any effect. Whatever gets called on change of .categorychecklist for the built in taxonomy sidebar panels does trigger a new location and swaps field groups in/out, but I’ve been unable to track down exactly what it’s triggering to accomplish this.

    For my particular use case, I’m going to be able to abandon the custom locations I had built and instead use post taxonomy locations built into ACF, so I’ll fortunately be able to bypass my issues. It still would be great though to know how to refresh the location using the new API for future projects where I need custom locations.