Created
July 22, 2021 16:29
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'wp_page_revisions_to_keep', '__return_zero' ); | |
add_filter( 'wp_post_revisions_to_keep', '__return_zero' ); |
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
https://core.trac.wordpress.org/ticket/51550