I’m trying to populate variables in my custom JS script with ACF field value but I have no clue how to do it.
Basically I have a script which works when I have it in scripts/common.js but I want pull data from ACF into it. Pretty much set a variable with data from acf.
Did anybody do that before?
Any help would be more than appreciated !