Is there a hook/function combination that can be added to my theme's functions.php to properly disable REVISIONS and AUTOSAVE for the entire wordpress installation? What about if just for a certain custom post type? Searching online gives various hacks from deregistering scripts to tampering with core files. What's the acceptable/correct way to do this?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
|
|||
|
|
|
This should be placed in your wp-config.php (and no where else):
|
|||||||
|
|
I'm also looking for how to disable autosave. But here's what I was told in a Trac ticket:
|
||||
|
|
This is how to modify autosave interval And this is how to modify post revisions So to use it in your theme, try to declare appropriate constants in your functions.php file. |
|||
|