Getting started
Manual data entry
Menu
Getting started
Manual data entry
Google maps Google maps license key constant (for local development)

Google maps license key constant (for local development)

Last updated: December 23, 2025

When working on a site with a Google Maps API key set up, you’ll often find that whoever set up the API key didn’t take your local site (e.g. my-test-webstite.local) into consideration. So we’ve set up a solution allowing you to simply define your own API key as a constant in wp-config and override whatever’s in the setting without changing the setting.

This is extremely handy in situations where you are frequently pulling a database from staging or prod to local and don’t want to have to remember to update the setting each time.

define( 'RENTFETCH_GOOGLE_MAPS_API_KEY', 'yourlicensekeygoeshere' );

This should be placed in your wp-config.php file, just above where it says “That’s all, stop editing!”

Take Your Apartment Website to the Next Level

Whether for an entire portfolio or a single property, get completely setup and sync new property info & floor plan data in 10 minutes or less.

Trusted By

Cowboy Partners

Brickstone

Four Star

StreetLights

Richmark

Gates Hudson

Try Rent Fetch Today

We offer a 30-day, money-back guarantee.