WP_CLI\Utils

maybe_require()WP-CLI 1.0

No Hooks.

Return

null. Nothing.

Usage

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

Code of maybe_require() WP-CLI 2.7.0-alpha

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