WC_Autoloader::load_file
Include a class file.
Method of the class: WC_Autoloader{}
No Hooks.
Returns
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() WC Autoloader::load file code WC 10.6.2
private function load_file( $path ) {
if ( $path && is_readable( $path ) ) {
include_once $path;
return true;
}
return false;
}