• Resolved dolob

    (@dolob)


    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

    (@stiofansisland)

    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.