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
- Show a different number of posts per page depending on context (e.g., homepage, search, archive)
- PHP code on Visual Composer Plugin
- How to make a list of companies’ information and display them to user, using custom post types and a custom taxonomy?
- Thumb rating for wordpress – top user
- Setting up widgets in wordpress with a unique ID for the after_title argument
- allow arabic letters when register new account
- Set attached to state
- Use plugin or custom post type for game score functionality
- Make specific products accessible only to a user role in WooCommerce
- Custom form action to handle data inside a plugin
- WP Post Template – Templates in own folder
- Shrink down register_settings on Settings API
- Parse error: syntax error, unexpected ‘new’ (T_NEW) in /misc/41/000/204/381/9/user/web/ragami.net/wp-settings.php on line 219
- Ajax call returning 0
- Some code in shortcode function being ignored
- Using window.onload with Ubermenu
- What is @Action in WordPress?
- How do I publish portfolio items with a future date?
- How to make a dynamic css class whose name changes every visit to confuse scraper
- How to display registered customer list as dropdown in WooCommerce checkout?
- Where Should i write the code for wordpress ajax voting?
- WP::is_main_query() Not Working
- Echo out element to another page.
- Custom Post Type, Custom Columns List
- need click to clipboard button on my site
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- Show prices with tax Inclusive in Minicart widget
- Adding category base to url in custom post giving 404?
- Custom fields not showing up in the user info (PaidMembershipsPro)
- WP Function does not trigger on Webhook API Call
- issue concerning ob_end_flush functions.php
- In a plugin, How to update a json file using ajax
- Accessing download link from the loop with WP Download Manager Pro
- Woocommerce list variations that are added already to cart in Single Product
- using href when creating wordpress plugin calls empty page instead of php file
- Saving custom form fields
- How to add php stylesheet to admin section instead of admin_head hook
- Posts are deleted everyday at night
- WordPress create permalink structure for custom post type with userid
- I want to allow certain file types on dokan upload files
- How to create different woocommerce single_product.php pages for each product? [closed]