<p>If you have version 1.2.3 of the plugin installed and you don't want to Composer to update past that version, you'd just modify your <code>composer.json</code> file so it's locked to that exact version.</p>

<pre><code>"require": {
    "plugindeveloper/pluginhandle": "1.2.3"
}
</code></pre>

CC BY-SA 4.0
2018-11-03T01:05:08.217Z
Thank you! I noticed on some of our Craft installs, when running composer update in ssh, it would automatically update all plugins that had updates available. Some of the installs didn't do this. I'm guessing it's some server feature or composer setting that may be causing this.
Chattervast
CC BY-SA 4.0
2018-11-02T22:04:33.957Z
2018-11-02T22:04:33.957Z
Brad Bell
<p>I have a plugin installed from a well known Craft developer. I have made significant tweaks and changes to the plugin and need to prevent it from updating. Is there an easy line of code to add to the composer.json file to prevent it from updating? I may have to go the route of breaking it out into our my plugin but for time reasons I am looking for simple ways to prevent updating.</p>

<plugins><composer><auto-updates>
How to Prevent Composer from Updating Plugin?
# How to Prevent Composer from Updating Plugin?

(Asked by: username_0 on 2018-11-02)

I have a plugin installed from a well known Craft developer. I have made significant tweaks and changes to the plugin and need to prevent it from updating. Is there an easy line of code to add to the composer.json file to prevent it from updating? I may have to go the route of breaking it out into our my plugin but for time reasons I am looking for simple ways to prevent updating.

**Tags:** plugins, composer, auto-updates

---

## 1 answers

### Answer by username_1 on 2018-11-02. Score: 2 | Accepted answer

If you have version 1.2.3 of the plugin installed and you don't want to Composer to update past that version, you'd just modify your composer.json file so it's locked to that exact version.
"require": {
    "plugindeveloper/pluginhandle": "1.2.3"
}

> **Comments:**
> **username_0**: Thank you! I noticed on some of our Craft installs, when running composer update in ssh, it would automatically update all plugins that had updates available. Some of the installs didn't do this. I'm guessing it's some server feature or composer setting that may be causing this.  

---

