How to create a custom config file and get data using inline JS in a wordpress page
I suspect that the html block element you’re using doesn’t handle php, which is why the script tag isn’t working the way you hope. wp_localize_script() is a handy function to pass data from PHP to scripts. The function basically does the same thing you were trying to do with the html block. Lets say you’re … Read more