Skip to content

Instantly share code, notes, and snippets.

@lukecav
Created July 22, 2021 16:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Set page and post revision storage to be zero in WordPress 5.8
add_filter( 'wp_page_revisions_to_keep', '__return_zero' );
add_filter( 'wp_post_revisions_to_keep', '__return_zero' );
@lukecav
Copy link
Author

lukecav commented Jul 22, 2021

@pascalduboin
Copy link

or define('WP_POST_REVISIONS',false); in wp-config.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment