Creating a "Delete"-Button for Metadata userspecific

I want to build a dashboard, where a Trash-Symbol (Button) is shown.

The User has several Accounts to manage in the dashboard. Account 01 Account 02 Account 03 and so on..

In each of this as gravity forms, where userdata is created and saved in the user meta. account01_login account01_target

account02_login account02_target

are the meta keys for example.

Is it possible to build a button, where it is possible to do 2 things, if the button is pressed:

  1. Send an e-mail to me - that XXX is deleted.
  2. Delete the entrie of the metakey account01_login and account01_target (if trash button is hit by account 01).

Hope I wrote it understandable. :)

Thanks for advice and help! :)

Best Regards,

Andreas

Topic customization Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.