Skip to content

Instantly share code, notes, and snippets.

@Zillionx
Created January 29, 2020 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zillionx/962c6c0ac36b3392a44269b8d217e9c4 to your computer and use it in GitHub Desktop.
Save Zillionx/962c6c0ac36b3392a44269b8d217e9c4 to your computer and use it in GitHub Desktop.
// limit post revision (wp-config)
define( 'WP_POST_REVISIONS', 3 );
// disable post revision
define('WP_POST_REVISIONS', false );
// delete revisions MySQL query
DELETE FROM wp_posts WHERE post_type = "revision";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment