Created
June 11, 2017 09:37
-
-
Save AdelDima/1f90c58a0acef0440654de6eacdcadd5 to your computer and use it in GitHub Desktop.
Check WordPress Version
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 | |
/* Check WordPress Version */ | |
function dima_wp_version_check( $version = '3.0' ) { | |
global $wp_version; | |
if ( version_compare( $wp_version, $version, ">=" ) ) { | |
return true; | |
} | |
return false; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment