wordpress max post revision

To limit the maximum number of post revisions in WordPress, follow these steps:

  1. Open your WordPress website's wp-config.php file.

  2. Locate the following line of code: php define('WP_POST_REVISIONS', true);

  3. Replace the line with the following code to set the maximum number of revisions to a specific value (e.g., 5): php define('WP_POST_REVISIONS', 5);

  4. Save the changes to the wp-config.php file.

This limits the maximum number of post revisions to the specified value, in this case, 5. Adjust the number according to your preference.