What I want to do is get the user ID from a wordpress logged-in user when I load a shiny app in an iframe. This variable could then be used to save and modify user-specific
If you want to call onInputChange as soon as the Shiny app starts then you need to use the following JavaScript code instead of listening for click events.