Intercept VGM Marker placement

New home Forums Visitor Generated Markers Intercept VGM Marker placement

This topic contains 6 replies, has 2 voices, and was last updated by  DarrenGray 1 week ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #52454

    DarrenGray
    Member

    Hi,
    I’d like to allow visitors to place markers, but need to process a payment before the marker is added.

    Is it possible to pass control to a payment plugin/portal, and upon successful completion, ‘Approve’ the marker (ie make it available on the front end)?

    Thanks in advance

    #52458

    Perry
    Moderator

    Hi there

    Thank you for getting in touch.

    We don’t currently support a paywall on the VGM add-on, sorry about that.

    We do have this on our feature request list however this isn’t something we have a timeline on at the moment.

    Is there anything else we can help you with?

    Kind regards
    – Perry

    #52563

    DarrenGray
    Member
    This reply has been marked as private.
    #52575

    Perry
    Moderator
    This reply has been marked as private.
    #53983

    DarrenGray
    Member
    This reply has been marked as private.
    #54002

    Perry
    Moderator

    Hi Darren

    You can do this using the `wpgmza_ugm_marker_submitted` hook.

    This action receives a single parameter, which is an instance of WPGMZAMarker. You can do anything you need with the marker from there.

    I’d recommend you create an intermediate table called something like wpgmza_users_has_markers with two columns – the user ID and the marker ID.

    When that action fires, you can record the relationship between the current user and the submitted marker.

    You can use that table to toggle the approved column on and off based on a condition (the state of the users subscription in this case).

    Does that help?

    Kind regards
    – Perry

    #54030

    DarrenGray
    Member
    This reply has been marked as private.
    #54043

    Perry
    Moderator

    Hi Darren

    That’s great, thanks! We look forward to your update 🙂

    Kind regards
    – Perry

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

You must be logged in to reply to this topic.