How can I check which version of WP is installed using PHP?
-
I am developing a plugin and I need to check which version of WP is installed to know whether or not to display a dashboard widget. I attempted to use a
if(function_exists('wp_add_dashboard_widget'))
but that did not work. So now I am thinking that I should check the version and if it is below version 2.7, then the function will not be called.Anybody know how or have alternate suggestions?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How can I check which version of WP is installed using PHP?’ is closed to new replies.