When a WordPress post is trashed, all the comments are trashed as well. I would expect the “undo” button to restore both the post and the comments. However, all...
I want to call a function when a post is placed into the trash. I want to do something more complicated than the following, but have simplified to what’s...
Yesterday I move some of my WordPress product to trash, and keep only 4 products available. Today I open my site, all trash products was not there? But the...
I got the wp_die error message: Sorry, you are not allowed to move this item to the Trash. on trying to put the post in trash, but when I...
I have a post type that I set up some capabilities for and I attached them to a new Role, however, the role can not trash them. I’m not...
I am creating a plugin which syncs both standard WP data and custom fields within a custom meta box on post edit pages, to an external resource using SQL...
I’m trying to add a column to the trash page for posts and pages but can’t find a way to hook into that specific area. I’ve been able to...
I’m currently working on developing a plugin with a custom post type of “Dealer Location”. (Not relevant to question, just a bit of background) When a post is in...
Am struggling a bit with creating & removing terms based on when a custom post type is published and trashed. Ideally, I would like to create a new term...
I am using get_delete_posts_link($postid) to let users send their posts to the trash from the frontend. Now I’m trying to replicate the same functionality for them to “untrash” or...