Creating action button in a view

[ad_1]

Dear support,

I’m using WP Data Tables and I’ve created a view for our interns where they can see all the upcoming activities, generated from our clients appointments tables.

I’ve also created a separate table to record our intern enrollment.

I would like to add for each row in the view two buttons “enroll” and “leave” that modify the second table inserting a row with the appointment id (equal to the row appointment id), user id (taken from wordpress) as the intern id, creation date (it’s actually default from timestamp), status (enroll / leave), modification date (already set as an update trigger in the database).

I’ve tried to do it using projects and browsed all the WP Data Access option but I’ve not found a way, do you have any idea of how can I do it?

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer