WC_Autoloader::__construct()publicWC 1.0

The Constructor.

Method of the class: WC_Autoloader{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Autoloader = new WC_Autoloader();
$WC_Autoloader->__construct();

WC_Autoloader::__construct() code WC 8.7.0

public function __construct() {
	if ( function_exists( '__autoload' ) ) {
		spl_autoload_register( '__autoload' );
	}

	spl_autoload_register( array( $this, 'autoload' ) );

	$this->include_path = untrailingslashit( plugin_dir_path( WC_PLUGIN_FILE ) ) . '/includes/';
}