Questions tagged [deleted]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

delete images phisicaly as well

When I delete a media image in the media library, the file in the uploads repository is not removed, only in database so when I upload a similar I got : my-image1.png my-image1-1.png my-image1-2.png ....
0
votes
1answer
519 views

Redirect back to origin page after using get_delete_post_link()

I need to implement frontend and backend redirection after delete specific post using get_delete_post_link(). Which hook i can use? Any advice would be appreciated. Something similar to : <?php ...
0
votes
1answer
679 views

how to redirect page after delete post inside a post page?

so on theme single.php i want to put delete button so they can delete the post directly. After the post deleted then the page will redirect to profile page. here's the delete button html <a class=...
0
votes
1answer
410 views

WordPress 404 Images - Images not found after deleted from media

I am trying to develop the website to find images that have been deleted from the media library as they were not needed. These Images that I have deleted have previously been on pages but have been ...
-1
votes
3answers
45 views

Deleling wordpress posts permanently still have IDs

Example: Right now I have 100 posts. If I add a new post it will have ID 101. If I delete all the current 100 posts the new post will still have ID 101 when it should have 1 or 0. How can I delete ...
9
votes
5answers
24k views

Delete tables from database when deleting plugin

I created a plugin and want to add a function to delete my tables from the database when a user deletes my plugin. I created a function that deletes tables from the DB when a user deactivates my ...
0
votes
1answer
423 views

woocommerce shop page Redirect Help

How can I redirect my wordpress shop page from. www.domain.com/shop to shop.domain.com. Please help Also my site has been adding deleted products to my customers orders. They are not being charged ...
1
vote
2answers
39 views

Redirecting Pages That No Longer Exist — But Could in the Future

I have several 404 errors with a URL such as: myWebsite/tag/foo/page/4/. Page no longer exists because a few posts were deleted tagged as "foo." Which is better: 301 redirect that to myWebsite/tag/foo/...
1
vote
1answer
2k views

Deleted category by mistake, all posts now have categorized category. Can i revert that?

Recently somebody deleted from my blog a whole category by mistake and all the posts in that category (sports 2.500 posts) have been moved to uncategorized. Is there any way to fix that?
0
votes
4answers
2k views

How to Restore Deleted Post Not in Trash

I accidentally deleted a post and don't see it in Trash. How can I recover and restore it. Just did it an hour ago.
0
votes
2answers
3k views

How to recover permanently deleted blog posts?

I accidentally deleted about 20 blog posts and they were in my trash folder for over a month and now have permanently deleted. I was wondering if there's a way to recover these? For example I have ...
1
vote
2answers
18k views

Deleting data from a custom table in WordPress

I am trying to delete records from my custom table but it does not delete anything. Here is my code: <?php global $wpdb; $retrieve_data = $wpdb->get_results( "SELECT * FROM wp_paypal" ); // ...
2
votes
2answers
2k views

How to mass delete one line from all posts

I need to delete some content from all posts. Every post starts with this line: <p style="text-align: center;"><img src="http://i.imgur.com/picture.jpg" alt="" /></p> So I want to ...
-1
votes
1answer
1k views

How to delete unnecessary custom post types in the UI

I am using Wordpress 4.8 and have a custom post type that I can't find a way to delete. It was created by someone else and i'm not sure where, however I can tell it wasn't created with the CPT UI ...
5
votes
4answers
6k views

Find out who deleted a page or post?

Someone moved a very important page on my website into the trash, and I do not know who did it! It was not deleted permanently so I don't need to worry, in that sense. The revisions, when I restored ...
1
vote
5answers
3k views

How to delete all posts, categories and tags from Wordpress database

I have WP website with over 40,000 posts. Now I'll like to delete all posts, categories and tags. So All content and related meta. All I want to keep is static files. Is there a easy way to do this ...
0
votes
1answer
31 views

How to restore deleted audio files from media library

I accidentally deleted my audio files from the media library. Is it possible to restore them
0
votes
1answer
37 views

delete post hook not being fired when deling in wordpress dashboard admin

What I'm trying to do is to delete some post from a custom post type bookitall_availabledate after a post is deleted from custom post type bookitall_bookings in the admin dashboard. I'm using ...
2
votes
1answer
238 views

wp_delete_post() deletes post instead of moving it to trash

I have set up a custom post type, which user can edit from the frontend. I'm using wp_delete_post() to allow users to delete a post they created. It works, but the posts get deleted instead of being ...
0
votes
0answers
92 views

WordPress Delete Users from backend doesn't work

When I delete user & that user content from backend, user was deleted successfully but wordpress doesn't delete that user posts & comments even I select "Delete all content" radio button. Does ...
0
votes
0answers
126 views

Delete Post by User

Been trying to come up with a way to remove posts by a user when their role is changed. I am using woo subscriptions which gives a user the role subscribed when they join. However when they cancel it ...
0
votes
0answers
33 views

WordPress deletes custom posts instead of trash them

I need to trash some custom posts, under certain conditions, via code (it's a plugin self-written) The theme used is a children I don't shutdown the ability to trash the post; In config.php there ...
-1
votes
1answer
157 views

How to restore deleted wordpress site?

Is it possible to restore deleted wordpress sites? Before delete, the data was exported into couple of XMLs. What is the process to restore it on the web? What is the method to view it without making ...
2
votes
2answers
3k views

Delete Post From Front-End and attachment permanently

Is there a way to delete a Post From Front-End and it's attachments permanently? This is a snippet that moves the post to the trash can, but it doesn't remove attached images (they remain on the ...
0
votes
1answer
4k views

How do I reset my footer.php to its original state? (theme: Origami)

I accidentally deleted some codes from my footer.php trying to get rid of the 'Theme By Origami' footer, and now the footer is all messed up. How do i reset it to its original state? I feel so stupid, ...
0
votes
2answers
2k views

l accidentally permanently deleted a Draft. There's any way I can recover it?

I recently started a blog and I was about to finish my second Post. I was cleaning up some stuff and decided to empty my Trash. I wasn't paying much attention to it because I wasn't expecting my ...
4
votes
2answers
70k views

How to restore deleted pages/posts?

I recently deleted some pages in my wordpress site. Now I want to re-store them. How can I do this? Any suggestions will be appreciated. Thanks in advance
1
vote
2answers
3k views

Wordpress Delete hook with wp_delete_post function?

I have this action/hook: add_action( 'before_delete_post', 'my_delete_function' ); function my_delete_function($post_id) { global $wpdb; $achievement = get_the_category($post_id); $h = ...
1
vote
1answer
984 views

Does wp_delete_user() remove all user content?

I'm deleting WP users with wp_delete_user(). It works well. I noticed when I manually delete a user in the WP Admin it asks first to "Delete all content" or "Attribute all content to: ". I want ...
0
votes
1answer
144 views

get_delete_post_link( $post->ID ) is blank when logged in as “subscriber”

Trying to create a delete link on frontend, but when logged in as a subscriber the get_delete_post_link( $post->ID ) variable is blank. Link is fine when logged in as administrator. Am I missing ...
0
votes
1answer
83 views

In Multisite: Site / Blog IDstill exists after deleting site

I have deleted one of my sites in a multisite install. When I add a new site, it skips the site I deleted and creates a new one. I would prefer to know that all aspects of the old site were gone ...
0
votes
3answers
1k views

Remove the deleted user comment

Problem I have a user based site, so when user deletes his profile somehow his/her comments stay visible. There is no name and blank avatar with the comment. Is there any way to delete the comments ...
0
votes
1answer
91 views

Enclosures being deleted “automatically”

I am using PowerPress for my podcast support. I am working on some things on the web site and I swear, I set the enclosure, verify via phpMyAdmin that it is there. I don't touch anything on the site ...
0
votes
1answer
32 views

Post does not disappear

The teaser of a deleted post is still sticking in one of my blog category lists (in one of two that the post was assigned to). I have tried to optimize DB tables. I have restored (through Vaultpress)...
0
votes
1answer
572 views

issue in wordpress auto delete post and redirect to another 1

i am getting strange issue on WordPress, my site is huge traffic and database. one thing.. my WordPress is updated 4.4.2 all plugins updated. now i get issue when i publish new post most of the posts ...
0
votes
1answer
1k views

redirects for removed/deleted woocommerce products

I need to remove some discontinued products from a woocommerce site. I'm just wondering how to go about automating this. I haven't figured out whether to throw a 301, 404 or 410 error, but either way, ...
0
votes
0answers
905 views

Let user delete comment on front end only

I have a edit comments page on my sites front end and have placed a delete comment link for users. The link works however it takes the user to the backend to confirm the comment deletion. I cant have ...
0
votes
1answer
96 views

Wordpress installation self deleted in server restart. SQL Tables gone too!

I have or had in this case, two wordpress sites running on a Ubuntu 12.04 server edition which were installed over the weekend. After installation both sites were performing as expected, no problems. ...
0
votes
1answer
677 views

Prevent attachment from being deleted

In Wordpress admin media library page (upload.php) I'd like to do some checking on delete_attachment action. I want my custom function to fire before attachment's being deleted. In this function I ...
0
votes
1answer
2k views

how to use hook deleted_user into custom function to delete user from custom table

I have a second user table in my WordPress database for a separate application that I am integrating. I need to be able to delete a user from this second table when the user is deleted in the ...
3
votes
3answers
11k views

Is It Possible to Restore Accidentally Deleted Widgets?

I accidentally deleted the widgets without dragging it to the inactive widgets section. I have a backup of all the files and the database but i have changed many things on the site other than the ...
1
vote
1answer
30 views

Delete post by giving its link

It is possible to delete a post in WordPress using its link only? I can't find any possible way to do this.
2
votes
1answer
15k views

How do I delete thousands of unattached images?

I have thousands of unattached images with no files. How do I delete them all quickly? ls: cannot access wp-content/uploads/2014/09/jeep cherokee patriot-Ekza.jpg: No such file or directory
0
votes
1answer
982 views

Restrict access to trash, only admin

I'm new in WordPress. I have to restrict access to the Trash for all users except the administrator. All users CAN move to the Trash, but only admin can delete permanently or restored. I do not know ...
4
votes
5answers
1k views

Delete Post From front Page ( With Wp-admin restriction )

am using this function to delete post from front // Delete from Front-End Link function wp_delete_post_link($link = 'Delete This', $before = '', $after = '', $title="Move this item to the Trash", $...
1
vote
1answer
4k 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
0answers
58 views

If I delete my wordpress site then does that delete all my sites?

I have 2 wordpress sites, I didn't mean to but create 2 but i did. My main wordpress site I do not want deleted but If i delete the add on site i did not want (I know how to delete sites), will it ...
-1
votes
2answers
142 views

Deleting first four characters from all Post Titles

I have a wordpress autoblog.. I need to delete first four characters from each single post title automatically.. How can I achieve it?
0
votes
1answer
26 views

Privilege to recover trashed posts

I can't seem to find which built in privilege is required for recovering a trashed post. Would it be delete_posts, which is as its name suggests, can move items into the trash and remove them ...
0
votes
1answer
65 views

How to only allow post to be deleted if custom field doesn't exist

I have looked at both the delete_post and before_delete_posts. Neither of these hooks actually allow me to perform a check and then tell wordpress not to delete the post. Anyone got any ideas?