WC_Autoloader::load_file()privateWC 1.0

Include a class file.

Method of the class: WC_Autoloader{}

No Hooks.

Return

true|false. Successful or not.

Usage

// private - for code of main (parent) class only
$result = $this->load_file( $path );
$path(string) (required)
File path.

WC_Autoloader::load_file() code WC 8.7.0

private function load_file( $path ) {
	if ( $path && is_readable( $path ) ) {
		include_once $path;
		return true;
	}
	return false;
}