简体   繁体   中英

is there a way to notify a WordPress admin when the database is changed?

i have a WordPress site and i need to notify the admin user by an alert whenever the database is changed,so is it the only way to do that is using triggers or there is a better way??

There are many options available. You want to be notified when a post is created/updated/deleted or the whole database? If you would like to monitor the whole database, I would rather use something db's binary log instead of triggers.

For single table, triggers are a viable option. You could also use save_post hook.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM