WooCommerce Code Reference

WC_Autoloader
in package

Autoloader class.

Table of Contents

$include_path  : string
Path to the includes directory.
__construct()  : mixed
The Constructor.
autoload()  : mixed
Auto-load WC classes on demand to reduce memory consumption.
get_file_name_from_class()  : string
Take a class name and turn it into a file name.
load_file()  : bool
Include a class file.

Properties

Methods

autoload()

Auto-load WC classes on demand to reduce memory consumption.

public autoload(string $class) : mixed
Parameters
$class : string

Class name.

Return values
mixed

get_file_name_from_class()

Take a class name and turn it into a file name.

private get_file_name_from_class(string $class) : string
Parameters
$class : string

Class name.

Return values
string

load_file()

Include a class file.

private load_file(string $path) : bool
Parameters
$path : string

File path.

Return values
boolSuccessful or not.