GEO my WP Support

Use this forum for technical support and general questions related to GEO my WP plugin and its core add-ons only. For technical support and general questions related to any of the premium extensions please open a new premium support ticket.

[Resolved]Can you please add filter before to get address information from google

Forums Support Can you please add filter before to get address information from google

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #58021
    imran789
    Member

    I want to save all searches address in my database, can you please add filter before to get location details from google geocode.

    includes/class-gmw-geocoder.php

    Please see screenshot attached.

    Attachments:
    You must be logged in to view attached files.
    #58023
    imran789
    Member

    $location_output = apply_filters( 'gmw_geocoded_location_output', $location_output, $address_hash );

    // hook after geocoding
    do_action( 'gmw_geocoded_location', $response['result'], $response, $address_hash );

    Add one more parameter please

    #58093

    Hi,

    I added one filter before the geocoding and one after.

    Before geocoding the $location_output is returned from the transient. But if there is nothing in the transient so you will have no value to use.

    So I added another filter at the end of the function, after the geocoding.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Can you please add filter before to get address information from google’ is closed to new replies.