Revision history
-
I am a novice at building a website and I am attempting to limit the number of page revisions stored by WordPress as I have a couple pages with well over 500 revisions (now that the website is up and running the number of revisions will be few and I have realized the importance of saving changes as a draft in Elementor until ready for publishing the revised page). I am running WordPress version 5.9 with Elementor version 3.4.8.
After reviewing several articles and posts in the WP forums I added the following line to my wp-config.php file: define(‘WP_POST_REVISIONS’, 20);
This was added just prior to the wp-config.php line item: /* That’s all, stop editing! Happy blogging. */
This change did nothing to clear out the excess revisions that are of no use to me. I found a WP forum item that indicated moving the line to just after the block text, which I did with no change to the number of page revisions.
I also found an article in the WP Forum regarding the Revision.php file that has a line item addressing ‘wp_revisions_to_keep”. It implies ‘wp_revisions_to_keep’ may override the value listed in ‘WP_POST_REVISIONS’ but I have no clue if this is impacting me.
Any suggestions as to why the addition of the “define(‘WP_POST_REVISIONS’, 20);” is not working?
Darol
- The topic ‘Revision history’ is closed to new replies.