• Resolved Brayden96

    (@brayden96)


    Hello,

    I would like to notify all users with the same postal code whenever a new listing is posted matching their postal code. I am just curious if you have absolutely any knowledge you could give me to give me a head start with this, I understand this request is outside of your scope of support.

    I already made a postal code buddypress profile field that all users fill out on registration, I am just not sure about how I can call the listing postal codes to see if it matches the profile field.

    https://ww.wp.xz.cn/plugins/geodirectory/

Viewing 1 replies (of 1 total)
  • Plugin Author Paolo

    (@paoltaia)

    Hi,

    please see: http://codex.ww.wp.xz.cn/Plugin_API/Action_Reference/save_post

    1st you will want to check the post zip code.

    something like:

    global $post;
    $zipcode = $post->post_zip;

    Should give you that info and from there you can build the function to send a notification to all members in that ZIP.

    Let us know if that was enough to get you started.

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘Alert People Via Postal Code’ is closed to new replies.