Title: API key
Last modified: December 7, 2016

---

# API key

 *  Resolved [MikeNGarrett](https://wordpress.org/support/users/mikengarrett/)
 * (@mikengarrett)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/api-key-114/)
 * > You will need to unzip the plugin.
   >  Then open this file in a text editor: bp-
   > xprofile-location\inc\pp-field-type-location.php And paste your Key where it
   > says ‘Paste Your Key Here’. Don’t delete the single quotes. Save the file. 
   > Re-zip the plugin.
 * Instead, could you provide a constant to define in wp-config that would provide
   the key?
 * Otherwise, it may be better to recommend setting the key via the theme’s functions
   file. For example:
 *     ```
       function custom_add_google_api_key() {
       	add_option( 'pp_gapikey', '[API_KEY_HERE]' ); 
       }
       add_action( 'init', 'custom_add_google_api_key' );
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [shanebp](https://wordpress.org/support/users/shanebp/)
 * (@shanebp)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/api-key-114/#post-8534176)
 * Thanks for the suggestions. Both would work. However implementing either of them
   now would create backpat issues.

Viewing 1 replies (of 1 total)

The topic ‘API key’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bp-xprofile-location.svg)
 * [BP xProfile Location](https://wordpress.org/plugins/bp-xprofile-location/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-xprofile-location/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-xprofile-location/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-xprofile-location/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-xprofile-location/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-xprofile-location/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [shanebp](https://wordpress.org/support/users/shanebp/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/api-key-114/#post-8534176)
 * Status: resolved