WC_Autoloader::__construct
The Constructor.
Method of the class: WC_Autoloader{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Autoloader = new WC_Autoloader(); $WC_Autoloader->__construct();
WC_Autoloader::__construct() WC Autoloader:: construct code WC 10.6.2
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/';
}