Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories

Synchronize::init()publicWC 1.0

Sets up our checks and controls for downloadable asset URLs, as appropriate for the current approved download directory mode.

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

Хуков нет.

Возвращает

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

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

$Synchronize = new Synchronize();
$Synchronize->init( $register );
$register(Register) (обязательный)
The active approved download directories instance in use.

Код Synchronize::init() WC 8.7.0

final public function init( Register $register ) {
	$this->queue    = WC()->get_instance_of( WC_Queue_Interface::class );
	$this->register = $register;

}