WP_CLI\Utils

load_file()WP-CLI 1.0

Load a file.

Using require() directly inside a class grants access to private methods to the loaded code, hence this wrapper helper.

No Hooks.

Returns

null. Nothing (null).

Usage

load_file( $path );
$path(string) (required)
.

load_file() code WP-CLI 2.13.0-alpha

function load_file( $path ) {
	require_once $path;
}