Suggestions for API to add new Places?

This topic contains 1 reply, has 2 voices, and was last updated by  Kiran 6 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #399446

    Mike Eastwood
    Expired Member
    Post count: 23

    Hello,

    We use a form to collect registrations for Membership.

    We want to automatically add a draft listing (for the Member) whenever someone fills in the form.

    Any suggestions for the best way we can automatically push a listing (gd_plce) into GeoDirectory when a Member registers?

    Thank you
    Mike

    #399567

    Kiran
    Moderator
    Post count: 7069

    Hi Mike,

    Please follow this post for details on how to add/update listing via API https://wpgeodirectory.com/support/topic/update-listing-location-via-wp-api/#post-332863

    Only authenticated users(logged is users) have permission to submit post via API because WordPress API does not allows non logged users to create posts via API. So in your case you needs custom code to handle data submitted during registration and create post by using that data.

    Let us know.

    Kiran

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket