Limit page revision versions with a code snippet
-
I want to limit posts and especially PAGES to 5 revisions.
I know that its possible to do that with the Wp-Config file.
I would rather do it through a custom plugin code snippet to afford a bit more flexibility.
So, is this ALL that needs to be added to the boilerplate plugin file?
if (!defined('WP_POST_REVISIONS')) { define('WP_POST_REVISIONS', 5); }
Some people say its necessary to have this as a “Must Use” plugin. Why?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Limit page revision versions with a code snippet’ is closed to new replies.