Title: Shortcode or code :D
Last modified: July 8, 2017

---

# Shortcode or code :D

 *  Resolved [dolob](https://wordpress.org/support/users/dolob/)
 * (@dolob)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/shortcode-or-code-d/)
 * How can i use the key variable in my codes?
    For ex:
 *     ```
       wp_enqueue_script('mycity_maps_googleapis',
               'https://maps.googleapis.com/maps/api/js?key=[Variable-Of-API-KEY-for-Google-Maps-Plugin]&libraries=places&callback=initialize_map',
               array('mycity_all_scr'), 3, true);
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [Stiofan](https://wordpress.org/support/users/stiofansisland/)
 * (@stiofansisland)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/shortcode-or-code-d/#post-9302376)
 * Hello,
 * You can get the key like this:
    `$key = get_option( 'rgmk_google_map_api_key');`
 * Thanks,
 * Stiofan

Viewing 1 replies (of 1 total)

The topic ‘Shortcode or code :D’ is closed to new replies.

 * ![](https://ps.w.org/api-key-for-google-maps/assets/icon-256x256.jpg?rev=1555469)
 * [API KEY for Google Maps](https://wordpress.org/plugins/api-key-for-google-maps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/api-key-for-google-maps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/api-key-for-google-maps/)
 * [Active Topics](https://wordpress.org/support/plugin/api-key-for-google-maps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/api-key-for-google-maps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/api-key-for-google-maps/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 1 reply
 * 2 participants
 * Last reply from: [Stiofan](https://wordpress.org/support/users/stiofansisland/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/shortcode-or-code-d/#post-9302376)
 * Status: resolved