Adding your MapBox Key Once you’ve installed and activated the plugin… Now all you should do is add this code to your functions.php (you can also use a plugin such as Snippets to mange this code): function acf_mapbox_api( $api ) { $api = 'XXXX'; // Please obtain an access token from your Mapbox account