Menu

Does Requires PHP on a WordPress plugin set a maximum PHP version?
📰

Does Requires PHP on a WordPress plugin set a maximum PHP version?

DEV Community: php·Markus Delos Santos·2 days ago
#W881nB38
#devto#dev#wordpress#plugin#version
Long article (1333 words) — no AI summary yet.
Reading 0:00
15s threshold

You check a plugin's listing before a server upgrade, see Requires PHP listed as 7.4 and Tested up to matching your WordPress release, and assume it's ready for PHP 8.4 or 8.5. It isn't: neither field sets a maximum PHP version or tells you whether the plugin works on newer PHP releases.

In WordPress plugin headers, Requires PHP only names the minimum PHP version the plugin needs. Tested up to only tells you the version of WordPress the plugin was tested against, not PHP. To check whether your plugins and theme are ready for a PHP upgrade, review their update history, scan the code, and test on staging.

What Requires PHP and Tested up to actually mean

Plugin headers declare minimums, not upper limits on PHP. In a plugin's main PHP file, the Plugin Handbook lists available header fields.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.