How to Disable or Limit Post Revision in WordPress

// For Disable Post Revision WordPress
define(‘WP_POST_REVISIONS’, ‘false’);
// For Limit Post Revision WordPress
define(‘WP_POST_REVISIONS’, 5);