[Plugin: WP Geo] Dev version fatal error (3 posts)

  1. Joss Winn
    Posted 5 years ago #

    As suggested, I'm trying to use the dev version with WPMU 2.8.5 but I can't activate the plugin on single blogs or site-wide. I get this error:

    Can't use method return value in write context in ../wp-content/plugins/wp-geo/wp-geo.php on line 199


  2. Ben Huson
    Posted 5 years ago #

    Sorry, my mistake, a little bug - try downloading the dev version again.

    - Ben

  3. Ben Huson
    Posted 5 years ago #

    Joss, The new filter I've added means you can override the API key using the following bit of PHP code:

    function my_wpgeo_google_api_key( $api_key ) {
        return 'MY_API_KEY';
    add_filter( 'wpgeo_google_api_key', 'my_wpgeo_google_api_key' );

    Add that to the functions.php in your theme... or you could add it to the bottom of the wp-geo.php file, but then you would have to re-add it everytime you upgrade the WP Geo plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic