WP_CLI\Utils
maybe_require()
No Hooks.
Return
null
. Nothing (null).
Usage
maybe_require( $since, $path );
- $since (required)
- -
- $path (required)
- -
maybe_require() maybe require code WP-CLI 2.8.0-alpha
function maybe_require( $since, $path ) { if ( wp_version_compare( $since, '>=' ) ) { require $path; } }