Skip to content

Instantly share code, notes, and snippets.

@lukecav
Created July 22, 2021 16:29
Show Gist options
  • Save lukecav/644880938b79db6484c308b12768a498 to your computer and use it in GitHub Desktop.
Save lukecav/644880938b79db6484c308b12768a498 to your computer and use it in GitHub Desktop.
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