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

Alex Günsche ag.ml2007 at zirona.com
Sat Jan 20 13:05:06 GMT 2007


On Sat, 2007-01-20 at 13:05 +0100, Per Soderlind wrote:
> 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')

How about <?php get_bloginfo('version') ?> ;-)


Best regards
Alex

-- 
Alex Günsche, Zirona OpenSource-Consulting
work: http://www.zirona.com/ | leisure: http://www.roggenrohl.net
PubKey for this address: http://www.zirona.com/misc/ag.ml2007.asc



More information about the wp-hackers mailing list