admin管理员组文章数量:1296880
I seem to have hit a roadblock trying to figure out how to append the user ID to an embedded iFrame url address. I am using a third party app that tracks unique users (and invoices me accordingly). Unfortunately, they were unable to help me figure it out.
The embed code is: <iframe src="/../embed/?u=[get_user_id_code_should_go_here]" width="100%" height="500" frameBorder="0" allowfullscreen></iframe>
where the ?u parameter should display the user id.
I was told that the way I would know it works is if the ID would show up in the page source. Unfortunately, I tried the "<?php echo get_current_user_id(); ?>"
and it did not work (displays exactly the text <?php echo get_current_user_id(); ?>
, but after doing a little bit of digging, I think I found out this would not be possible to begin with.
Am I supposed to include something in a template to make this work or should Wordpress handle this "out of the box"? I am running WP 5.7 with the latest version of Memberpress.
Thanks in advance for your help!
本文标签: phpInclude User ID in iFrame URL
版权声明:本文标题:php - Include User ID in iFrame URL 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741618229a2388656.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论