Wp_localize_script not working in Sage 9?

You would need to add admin_url to the globals definition:

"globals": {
  "wp": true,
  "admin_url": true
},

The globals definition in your ESLint config is essentially telling ESLint “Please don’t check to see if the variables I’ve set to ‘true’ here are defined in my scripts: they will be globally available when the scripts run.”

3 Likes