Okay
  Public Ticket #2934103
API / Developer Hook
Closed

Comments

  • Chris Draper started the conversation

    Hi,

    I am a developer working with the WP Amelia plugin which works great for our client. We would like to add a page on the website which is only accessed by Amelia Customers who have purchased a particular event. It's to show videos from fitness sessions that were on the event. Other users will not be able to access this page. Can you tell me please if this is possible and if I can use a hook or API from the plugin to pick up what services or events the logged in Amelia Customer has purchased? I'm a WordPress developer so am used to working with PHP code.

    Many thanks in advance,

    Chris

  •  1,196
    Uroš replied

    Hello Chris,

    Thank you for reaching out to us.

    Sorry for the late response. Our team is cut in half due to Covid-19 infections, so our response times are longer than usual. Thank you for your patience!

    We have API Routes for Amelia, but most of them are protected and depend on the permissions that are set in WordPress Accounts. You can check those API Routes in our free version of Amelia. Amelia Lite is a free WordPress booking plugin that allows you to set up a fully-featured automated WordPress booking system on your website. It is a handy tool for small businesses and individuals that depend on stable appointment-booking processes. You can download it from this link.

    When you download the Lite version you can find all API Routes in this file ../wp-content/plugins/ameliabooking/src/Infrastructure/Routes/Routes.php

    At the moment we have some JavaScript hooks that trigger after confirming the booking, before confirming the booking...

    Something like this probably can be achieved with a membership plugin. You would configure a redirection page after successful booking, and include that URL in the notification. With the membership plugin, you can limit access to this page, so only users with the "Amelia Customer" user role can access it.



    Kind Regards, 

    Uros Jovanovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables