WC_Autoloader::__construct()publicWC 1.0

The Constructor.

Метод класса: WC_Autoloader{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Код WC_Autoloader::__construct() 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/';
}