WP_CLI\Utils

maybe_require()WP-CLI 1.0

No Hooks.

Return

null. Nothing (null).

Usage

maybe_require( $since, $path );
$since (required)
-
$path (required)
-

maybe_require() code WP-CLI 2.8.0-alpha

function maybe_require( $since, $path ) {
	if ( wp_version_compare( $since, '>=' ) ) {
		require $path;
	}
}