Set page and post revisions as zero in WordPress 5.8

Set page and post revisions as zero in WordPress 5.8 on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'wp_page_revisions_to_keep', '__return_zero' );
add_filter( 'wp_post_revisions_to_keep', '__return_zero' );
1 Like

Reference
https://core.trac.wordpress.org/ticket/51550