You can use, in your wp-config.php:
define('EMPTY_TRASH_DAYS', 2 );
The example above will delete trashed posts (of all types) after 2 days.
Related Posts:
- Accessing post’s meta data based on user’s click of a post
- Redirect to another page using contact form 7? [closed]
- WordPress hide post from custom post-type on a single page
- How Do I Use The WordPress Plugin Posts 2 Posts by Scribu?
- Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
- How To Ignore a Filter On Applying Filter the Content In a Function
- Seriously stuck with some custom meta box/plugin stuff
- Enable comments for post with comments meta box removed
- Custom Post Type causes Page Not Found
- post expire after x days
- How to get images from EDD post?
- Is there a way to order posts and custom post types as one group?
- If post has custom field then display css-class
- How do I “get the next 10 posts after post_id == x”?
- get_post_type on post.php
- Matching Chapters to a Custom posts [closed]
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- Preg Match All doesn’t Allow echo first character for WordPress Taxonomy Tags
- External RSS feed to WordPress Portfolio
- pagination on data fetched using SQL query
- Custom setup of wordpress comments that are displayed
- WordPress custom taxonomy not showing
- Allowing users to Sign-up > Login > Post articles that need approval
- posts from multiple post types in one slider
- Creating an admin meta box to save post as pending
- Show related posts based of current ACF field name in a single page post (a loop within loop)
- 2 wordpress site same database
- Custom Template for wordpress cpt plugin
- “Allowed memory size” problem [closed]
- Get data from wp_posts of mysql in to variables of wordpress-php script
- What hook can I use to modify custom post data before it is displayed on the page?
- WordPress Stats Plugin: Display Post Views [closed]
- WP Insert Post If user refreshes override new post
- How to create repeater field manually, without plugin (ACF Pro)?
- Is it possible to pin a post in second position from top
- How to get the custom field value using SQL query
- WordPress is redirecting me to homepage
- Is there a hook similar to “save_post” which only fires AFTER the post is completely published?
- Adding custom post category to categories widget
- How to display the custom post related blog by category?
- How to arrange custom posts in the backend/admin by custom taxonomy
- Problem with checked box on wp car manager plugin
- How can I see $post object in frontend from functions.php?
- Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- Failed to load resource: the server responded with a status of 500 () post.php
- How to echo a PHP Code After the Content
- Displaying friend’s posts only
- Trending Tags based on post views
- Calling an custom field from theme option at the frontend
- WordPress list child pages of custom post type
- Enforce conditions only for draft posts using WyPiekacz, ignore pending and published posts
- Insert data in custom table during new post creation
- WordPress User Frontend Editing Custom Fields
- PHP $_session is not work in wordpress
- How to hide home title on pages and posts?
- Redirect a specific User role not admins automatically to view the post that they just updated
- How to export post tags from wordpress
- public custom posts not showing in my wordpress plugin
- is_singular() in mu-plugins not working
- Tickera missing attendees – No attendees found
- How to fetch WordPress Gallery Images to a Custom Post Type?
- Disable All In One SEO plugin for custom post type
- Updating post_parent caused the website to become unresponsive for 40 seconds or more
- Remove H1 title in admin post edit screen
- How to check if the post exists in any of the categories?
- Meta Box plugin image_advanced not showing up on frontend
- My wordpress website admin panel loads very slow, what can i do about that? [closed]
- Creating Features List in WordPress Post
- How to add homepage Widget?
- Embedding BitBucket Code in Posting
- Submit posts in two different post types with the same form
- Static page with formatted post list
- Next and Previous Pagination button not displaying in WordPress
- How to block external download link access if visitor not referred from WP?
- wordpress select multiple options and illegal string offset ‘timeslot’ [closed]
- post_exists() returns a 0 but the 0 doesn’t register [closed]
- How to tweak a plugin without preventing it from updating
- is_plugin_active() not defined on active plugin, in the thumbnails.php file
- Place max_execution_time in plugin [closed]
- My wordpress site wont load, it gives header error warnings
- Undefined constant error in pluggable.php
- Can anyone see a syntax error in this? [closed]
- Creating a press page for our project
- Make a magic tag work with Custom Post Types
- Change the behaviour of archive cpt category and single cpt by plugin, not by theme
- how to search through plugin in wordpress cimy-user-extra-fields?
- A plugin for software reviews site like this one?
- Adminimize Plugin — Is there an alternative to limiting Editor to ‘Appearance > Widgets’ only?
- Snippet displaying LearnDash parent course title with lesson title [closed]
- How to create post comparison in wordpress
- How to laod wp_enqueue_style to another header i created my self
- How to wrap image logo in Homepage with H1 tag
- How to execute init or woocommerce_init only for checkout page
- how to restore wordpress backup(.rar) manually?
- Is there a visual editor specifically for page snippets/sections?
- Plugin to display text before a post
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Notifications on WordPress Website [closed]
- Automatically put a menu on every post