Created
May 22, 2020 04:45
-
-
Save maheshwaghmare/51b5419600b56d39872d07126ab5fcf6 to your computer and use it in GitHub Desktop.
WordPress Theme or Plugin compatibility check with `is_wp_version_compatible()` and `is_wp_version_compatible() functions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $compatible_php = is_php_version_compatible( '5.1' ); | |
| $compatible_wp = is_wp_version_compatible( '4.4' ); | |
| if ( $compatible_php && $compatible_wp ) { | |
| // Compatible PHP & WordPress version. | |
| } else { | |
| // Not Compatible. | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment