Automattic\WooCommerce\Internal

DownloadPermissionsAdjuster::init()publicWC 1.0

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

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

No Hooks.

Return

null. Nothing.

Usage

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

Код DownloadPermissionsAdjuster::init() WC 7.1.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 );
}