Explainers · Explainer
What Is GPL in WordPress? A Plain Explanation
Short answer
GPL, or the GNU General Public License, is the license under which WordPress is released, and it gives you four freedoms: to run, study, share and change the software. Plugins and themes count as derivative works, so they inherit the GPL too. The license is about freedom, not price, so you can charge for GPL software as long as you pass the same freedoms on.
Key takeaways
- WordPress is released under the GPLv2 license, or a later version.
- The GPL gives four freedoms: run, study, share and change the software.
- Plugins and themes count as derivative works, so they inherit the GPL.
- Free software is about freedom, not price: you may charge for GPL software.
- Every plugin in the WordPress.org directory must use the GPL or a GPL-compatible license.
What does GPL stand for?
GPL stands for the GNU General Public License, a free software license written by the Free Software Foundation.
WordPress is released under the GPLv2 license, or a later version, and a copy of the license ships with every copy of WordPress. The Free Software Foundation wrote the GPL so that software stays free for all its users, not just its first owner.
The current version is GPLv3, dated June 29, 2007, while WordPress itself uses GPLv2 or later. The version matters less than the idea behind it: anyone who gets the software gets the same freedoms the author had.
What are the four freedoms?
The GPL rests on four freedoms that the Free Software Foundation lists in its definition of free software.
| Freedom | What it means |
|---|---|
| Freedom 0 | Run the program as you wish, for any purpose |
| Freedom 1 | Study how it works and change it, with source code access |
| Freedom 2 | Redistribute copies to help others |
| Freedom 3 | Share copies of your changed versions with others |
Access to the source code is a precondition for freedoms 1 and 3. Without the source, you cannot study the program or share a changed version, so a license that hides the source is not a free license.
These freedoms apply to every user who gets a copy, not just to developers. A site owner who never writes code still has the right to run WordPress for any purpose and to hand a copy to someone else.
What is copyleft?
Copyleft is the rule that stops anyone from taking GPL software, adding restrictions, and passing it on as closed software.
When you share a GPL program, you must pass on the same freedoms you received. You cannot add terms that deny others the four freedoms. The FSF describes copyleft as a rule that protects the freedoms, rather than one that limits them.
This is what makes the GPL different from permissive licenses such as MIT or BSD. Those licenses let someone take the code private, while the GPL keeps every later version free as well.
How does the GPL apply to WordPress plugins and themes?
WordPress.org states that plugins and themes are derivative works of WordPress, so they inherit the GPL license.
A plugin calls WordPress functions and runs inside WordPress, so it builds on WordPress code. The same applies to a theme, which uses WordPress template tags and hooks. That link is why both must be GPL-compatible.
The plugin directory rules say any GPL-compatible license is acceptable, but using the same license as WordPress, GPLv2 or later, is strongly recommended. All code, data and images in a directory plugin must comply with the GPL or a compatible license.
If you build a plugin for your own site and never share it, the rules do not force you to publish it. The GPL only sets terms for sharing, so private changes stay private until you hand the code to someone else.
Can you sell a GPL plugin or theme?
Yes, the GPL allows you to charge any price for a copy, or to give it away free.
The license says you may convey copies for a fee, and you may charge for support or warranty protection too. Free software is about freedom, not price, so a paid plugin can still be fully GPL.
What you cannot do is sell a plugin and then forbid the buyer from sharing it. Once a buyer has a copy, they may pass it on under the same license. This is why premium plugins sell support, updates and services, not the code itself.
Plugins in the WordPress.org directory may not lock features behind a payment. The code inside a directory plugin must be fully available, though paid services connected to it are allowed.
What does the GPL mean for your WordPress site?
For most site owners, the GPL means you can use WordPress without paying a license fee and without asking permission.
You may install it on as many sites as you like, change it to fit your needs, and move it to another host. No one can take your copy away or charge you to keep using it.
It also means you can hire any developer to work on your site, because no vendor owns your WordPress install. If a plugin author stops updating a plugin, another developer can take over the code. Learn how to find abandoned plugins so you can spot them early.
The license also shapes the plugin and theme market. Because buyers may share GPL code, shops compete on support, updates and new features rather than on locking the code away.
The GPL also gives you a way out of vendor lock-in. If your host closes or your page builder stops being sold, your content and your WordPress install still belong to you.
You can move both to a new host or a new theme without asking anyone for a key or a release.
What mistakes should you avoid?
Do not assume a plugin is GPL-safe just because it is sold on a marketplace, because some sellers add terms the GPL does not allow.
- Using a plugin with encrypted or obfuscated code, which the directory forbids and the GPL cannot cover.
- Removing license notices or copyright lines from code you share.
- Sharing a changed plugin without the source code or the license text.
- Buying a plugin that promises to be exclusive, since GPL code cannot be exclusive.
Also avoid mixing GPL code with code under a license that conflicts with it. The directory rules require every file in a plugin, including libraries and images, to use a GPL-compatible license.
Nulled plugins are a common trap: read why nulled WordPress plugins are not safe before you install one from an unknown source.
How is the GPL different from other licenses?
The main split is between copyleft licenses like the GPL and permissive licenses like MIT and BSD.
| License | Must share changes? | Can it go closed? |
|---|---|---|
| GPL | Yes, under the GPL | No |
| MIT | No | Yes |
| BSD | No | Yes |
| Proprietary | Not applicable | Yes, it starts closed |
Permissive licenses ask for little in return, which is why many JavaScript libraries use them. The GPL asks for more: if you build on GPL code and share the result, the result stays free too.
Neither style is better in every case. WordPress chose the GPL because its founders wanted the software and everything built on it to stay open for all users. That choice is why the plugin directory is so large.
A supply chain attack can still slip bad code into a plugin, so read what a supply chain attack is and check where your plugins come from.
Frequently asked questions
Is WordPress really free?
Yes, WordPress is free to download, use and change under the GPLv2 license or later. Free here means freedom, not price: hosts, themes and plugins can still cost money, but the WordPress software itself carries no license fee.
Do I have to release my custom theme under the GPL?
If you keep the theme for your own site, no. If you share or sell it, WordPress.org treats themes as derivative works, so the theme must be GPL-compatible. Most commercial themes are released under the GPL for this reason.
Can I use a GPL plugin on a client site?
Yes. The GPL lets you run the software for any purpose, including client work, and you may install it on as many sites as you like. You do not need to buy a new copy for each site unless you want the author's support or updates.
What happens if I break the GPL?
Your right to use and share the software ends until you fix the breach, and the copyright holder can ask you to stop sharing it. For WordPress plugins, the directory can also remove the plugin until the license problem is fixed.
Is the GPL the same as open source?
They overlap but they are not the same. Open source focuses on practical access to code, while the GPL and the free software movement focus on user freedom. Nearly all open source programs are free software, but the two ideas come from different values.
Sources
- License WordPress.org
- What is Free Software? GNU Project
- GNU General Public License v3.0 GNU Project
- Detailed Plugin Guidelines WordPress Developer Resources
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
