WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Internal

DownloadPermissionsAdjuster::init() public WC 1.0

Class initialization, to be executed when the class is resolved by the container.

{} It's a method of the class: DownloadPermissionsAdjuster{}

No Hooks.

Return

null. Nothing.

Usage

$DownloadPermissionsAdjuster = new DownloadPermissionsAdjuster();
$DownloadPermissionsAdjuster->init();

Code of DownloadPermissionsAdjuster::init() WC 5.9.0

final public function init() {
	$this->downloads_data_store = wc_get_container()->get( LegacyProxy::class )->get_instance_of( \WC_Data_Store::class, 'customer-download' );
	add_action( 'adjust_download_permissions', array( $this, 'adjust_download_permissions' ), 10, 1 );
}