how to enable revision in wordpress code example
Example: wp revisions config
// on wp-config.php -->
define( 'WP_POST_REVISIONS', 5 ); // Save max 5 revisions
define('AUTOSAVE_INTERVAL', 120 ); // Save revision automatically after 2 minutes (default 60 sec.)