Forum: Kleo Geolocation

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support related to the Kleo Geolocation premium extension please open a new premium support ticket.

[Resolved]Function to Check if User Added their Location?

Home Forums Kleo Geolocation Function to Check if User Added their Location?

This topic contains 4 replies, has 2 voices, and was last updated by  Eyal Fitoussi 3 years, 3 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #52396

    Jason
    Participant

    I’m trying to add a function that checks to see if the member added their location.

    What function do I have to tap into to add a reminder?

    Is it the xprofile_get_field_data or something else?

    #52409

    Eyal Fitoussi
    Keymaster

    Hello Jason,

    You can check if member added location using the function

    #52417

    Jason
    Participant

    Thank you Eyal! You are super fast at providing quality responses!

    #52418

    Jason
    Participant

    I’m using bp_is_profile_edit() to check if the user is on the edit profile page.

    Is there a similar code to check if the user is on the profile location page?

    I looked at the is_page but that would be the entire profile, not just the location

    #52440

    Eyal Fitoussi
    Keymaster

    You are welcome Jason.

    Is there a similar code to check if the user is on the profile location page?

    Unfortunately, GEo my WP does not provide such function nor BuddyPress as much as I know. One thing you can probably do is get the URL ( using $_SERVER[‘REQUEST_URI’] ) and check if the string “location” exists in it.

    Just an idea, maybe there is another way that I don’t know of.

    I hope that helps.

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

You must be logged in to reply to this topic.