Looking for method to check if ClassicPress vs WordPress

I have a starter plugin which includes the Classic Editor files and an option to use this functionality. This option does not need to be included if the plugin is running in ClassicPress. I am using the following, which should work for quite a while, but is there a better or more sophisticated method?..

$version = get_bloginfo( 'version' );
if ( $version >= 5.0 ) { ... }

Thanks.

1 Like

The below will check if ClassicPress or not:

    if ( function_exists( 'classicpress_version' ) ) {
    	return true;
    } else {
        return false;
    }
3 Likes

Great. Thank you!

1 Like