did you enable it & save it
Saved it, and plugin is enabled
Plugin Author
Bowo
(@qriouslad)
@napalmx37 the Limit Revisions module does not currently perform a (background) clean up of revisions in existing posts. It works best on new sites to limit revisions on new posts. That said, when you update an existing post, e.g. edit the post title, the limit will be enforced, i.e. it will remove excess revisions during the post update process.
@qriouslad I always setup ASE when I first do the wordpress install, before any content is added.
I added the define(‘WP_POST_REVISIONS’, 5); in my config, and edited a page that had 9 revisions. After saving the changes the number of revisions dropped to 6.
Plugin Author
Bowo
(@qriouslad)
@jamesrichered24 ASE applies the revisions control via wp_revisions_to_keep hook, not by modifying wp-confing.php.
@napalmx37 I just tested this by limiting revisions number to 5 and repeatedly saving a post, and the revisions is correctly limited to 5. Do you have any other code / plugin in your site that is somehow modifying the revisions limit? It’s possible that piece of code / plugin is also using the wp_revisions_to_keep hook, but at a later priority than 10, which ASE uses.
Plugin Author
Bowo
(@qriouslad)
@napalmx37 please try the following:
- Remove the define(‘WP_POST_REVISIONS’, 5); line from your wp-config.php
- Please download and install this v7.9.0 that contains some changes to the priority used for the wp_revisions_to_keep hook: https://www.wpase.com/sdc_download/2276/?key=lv7xpei37635z4zp2twgxjd81sqvs4
- Make sure you set revisions limit to 5 and check the post type(s) you’d like to limit revisions for.
- Test saving/updating posts again and see if the limit is enforced this time.