[wp-hackers] How to determine which WordPress version is running ?

Per Soderlind per at soderlind.no
Sat Jan 20 12:05:21 GMT 2007


Hi,

 

In my plugin, I need to determine which WordPress version it's installed on.
What is the best method for doing this ?

 

Using # $wp_version ? Or using function_exists on a function I now only
exist in WordPress 2.1 or later ? i.e. function_exists('wp_print_scripts')

 

Kind regards,

Per 

 

 



More information about the wp-hackers mailing list