How do I detect if ClassicPress is installed, and how do I get its version? Is there a $cp_version global available?
My goal is to have something similar to this:
<?php
if ( function_exists( 'is_classicpress' ) && version_compare( 'x.x.x', $cp_version, '<=' ) ) {
echo 'You should install the latest version of ClassicPress';
}
<?php
if ( function_exists( 'classicpress_version' ) && version_compare( 'x.x.x', classicpress_version(), '<=' ) ) {
echo 'You should install the latest version of ClassicPress';
}