Support

Account

Home Forums Front-end Issues Use ACF Profile Field As Variable in Javascript Reply To: Use ACF Profile Field As Variable in Javascript

  • Setting a variable to be used in a script would usually be done using wp_localize_script() during script registration/enqueuing.

    If your script is inline you could simply add the variable and value as part of the script content.