Created
March 13, 2013 18:21
-
-
Save imath/5154740 to your computer and use it in GitHub Desktop.
Quick tip to Neutralize WordPress post revisions without modifying wp-config.php
This file contains hidden or 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
<?php | |
function no_revions_for_posts() { | |
// see https://twitter.com/pixenjoy/status/311512790760308736 | |
remove_post_type_support('post', 'revisions'); | |
} | |
add_action( 'init', 'no_revions_for_posts', 99 ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment