[wp-hackers] PHP requirement for plugins
J.D. Grimes
jdg at codesymphony.co
Mon May 2 22:05:31 UTC 2016
Hi Stephen,
I don't know if there is a "best practice" implementation of this out there or not. There is nothing like this in WordPress core, and probably never will be. You might want to take a look at https://core.trac.wordpress.org/ticket/26909 and the related tickets for a better understanding of why.
- J.D.
> On May 2, 2016, at 5:52 PM, Stephen Rider <wp-hackers at striderweb.com> wrote:
>
> Hi all —
>
> Is there a standardized method in WordPress to declare that a plugin or theme requires a certain version of PHP? I’ve started coding my plugins to require PHP 5.4.
>
> I know I can write code that does something like check for the right PHP version and deactivate the plugin if it’s not met; but is there anything like this already within WP? It would be great if we could just add a line to the Readme.txt or the plugin Headers.
>
> --
> Stephen Rider
>
> wp-hackers at striderweb.com
> http://striderweb.com/nerdaphernalia
>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list