<p><a href="https://i.sstatic.net/aFQG1.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/aFQG1.png" alt="enter image description here" /></a></p>
<p>No need for a plugin, just don't check this option</p>

CC BY-SA 4.0
2018-06-25T12:57:11.883Z
Is there a way to set this programmatically?
Mike F
CC BY-SA 4.0
2018-06-25T12:59:33.433Z
Of course grab the section model and set the property to false
`$section->enableVersioning = false; Craft::$app->getSections()->saveSection($section);`
Robin Schambach
CC BY-SA 4.0
2018-06-26T13:43:48.590Z
Ok, maybe that was a bad response to your answer but as I said in my original question I am looking to set this through configuration rather than using a migration or something similar. Is there a way to do it through configuration?
Mike F
CC BY-SA 4.0
2018-06-26T13:46:01.523Z
No. Why can't you just not tick the checkbox? What's the purpose of a checkbox if you want to ignore it, the checkbox is actually your configuration
Robin Schambach
CC BY-SA 4.0
2018-06-27T14:41:57.057Z
I can "just tick the checkbox" but I want to globally enforce this behaviour on every project so it cannot be overriden - even if an admin wanted to change it. https://12factor.net/config
Mike F
CC BY-SA 4.0
2018-06-27T14:43:10.220Z
You can create a module and set up an event to set it to false during `EVENT_BEFORE_SAVE_SECTION`
Robin Schambach
CC BY-SA 4.0
2018-06-23T11:29:06.017Z
2018-06-23T11:29:06.017Z
2020-06-17T08:56:27.903Z
Robin Schambach
<p>Had a quick search online and I can't find a way to disable entry versioning.</p>

<p>Is this possible? There's some plugins that do this but I'm hoping there's some config I can set somewhere?</p>

<config><configuration><entry-versions>
Disable entry versioning
# Disable entry versioning

(Asked by: username_0 on 2018-06-23)

Had a quick search online and I can't find a way to disable entry versioning.

Is this possible? There's some plugins that do this but I'm hoping there's some config I can set somewhere?

**Tags:** config, configuration, entry-versions


---

## 1 answers

### Answer by username_1 on 2018-06-23. Score: 2

[![enter image description here](https://i.sstatic.net/aFQG1.png)](https://i.sstatic.net/aFQG1.png)

No need for a plugin, just don't check this option

> **Comments:**
> **username_0**: Is there a way to set this programmatically?  
> **username_1**: Of course grab the section model and set the property to false `$section->enableVersioning = false; Craft::$app->getSections()->saveSection($section);`  
> **username_0**: Ok, maybe that was a bad response to your answer but as I said in my original question I am looking to set this through configuration rather than using a migration or something similar. Is there a way to do it through configuration?  
> **username_1**: No. Why can't you just not tick the checkbox? What's the purpose of a checkbox if you want to ignore it, the checkbox is actually your configuration  
> **username_0**: I can "just tick the checkbox" but I want to globally enforce this behaviour on every project so it cannot be overriden - even if an admin wanted to change it. https://12factor.net/config  
> **username_1**: You can create a module and set up an event to set it to false during `EVENT_BEFORE_SAVE_SECTION`  

---

