I want a Google Apps Script Webapp to catch the current Username from my Wordpress. I've been working on this a while now but I can't figure it out. I tried it this way - inside wp I run the code:
<?php $current_user = wp_get_current_user(); echo '<div id="username" style="visibility: hidden;">' . $current_user->user_login . '</div>'; ?>
Now I tried to catch the ID content from a google webapp (in an iframe) but I cannot access the parent element. How can I communicate between both?
You can send values to the iframed webapp as parameters.
host page:
apps script: