Last active
October 14, 2015 02:07
-
-
Save dfwood/4290870 to your computer and use it in GitHub Desktop.
Check for the current WP version and do stuff based on the version. Drop into a function or wherever it is needed.
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 | |
global $wp_version; | |
if ( version_compare( $wp_version, '3.5', '>=' ) ) { | |
// WP Version 3.5.x+, do something! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment