wp limit post revisions
To limit post revisions in WordPress, follow these steps:
Access your WordPress website's admin dashboard.
Navigate to the "wp-config.php" file, typically located in the root directory of your WordPress installation.
Open the "wp-config.php" file using a text editor.
Insert the following code snippet before the line that says "/ That's all, stop editing! Happy blogging. /":
// Limit post revisions
define('WP_POST_REVISIONS', 5);
Replace "5" with the desired number of revisions you want to keep.
- Save the changes to the "wp-config.php" file.
By following these steps, you will limit the number of post revisions to the specified value, helping to manage database size and improve performance.