1
vote
1answer
1k views

How to recover deleted site in Wordpress Multisite?

I went to Network Admin > Sites > clicked on a site and changed the site url for a child site. Now that site is gone altogether and I cannot get it back. What can I do now?
0
votes
2answers
573 views

How to hook a function only when I need to delete permanently a post?

I need to hook a function only when I delete permanently a post from the database, I've tried the 'before_delete_post' hook, however, it's called both when it's trashed and permanently deleted. The ...