Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories
Synchronize::init
Sets up our checks and controls for downloadable asset URLs, as appropriate for the current approved download directory mode.
Method of the class: Synchronize{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Synchronize = new Synchronize(); $Synchronize->init( $register );
- $register(Register) (required)
- The active approved download directories instance in use.
Synchronize::init() Synchronize::init code WC 10.9.4
final public function init( Register $register ) {
$this->queue = WC()->get_instance_of( WC_Queue_Interface::class );
$this->register = $register;
}