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?
- The topic ‘How can I check which version of WP is installed using PHP?’ is closed to new replies.