Passing Parameters?
-
Writing a plugin to use google maps and I’m trying to figure out how to pass the api key. The end result should look like
<script type='text/javascript' src='https://maps.google.com/api/js?key=API_KEY_FROM _PHP_Script&sensor=false'>
I can’t seem to figure out how to append the “API_KEY_FROM_PHP_script” part. I think I need to call wp_register_script and such. I’m pretty sure I need this <script> tag in the header section of the eventual resulting page/post.Anyone care to point me in the proper direction?
Much Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Passing Parameters?’ is closed to new replies.