Is it possible to run a function every time a post is deleted. The function has to be run when the post is deleted from the admin or by the wp_delete_post() function.
Yes, by adding an action to the before_delete_post, delete_post, or deleted_post actions.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
4 years ago