Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories

Register::init()publicWC 1.0

Sets up the approved directories sub-system.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of Register::init() WC 7.1.0

final public function init() {
	add_action(
		'admin_init',
		function () {
			wc_get_container()->get( SyncUI::class )->init_hooks();
			wc_get_container()->get( UI::class )->init_hooks();
		}
	);

	add_action(
		'before_woocommerce_init',
		function() {
			if ( get_option( Synchronize::SYNC_TASK_PAGE ) > 0 ) {
				wc_get_container()->get( Synchronize::class )->init_hooks();
			}
		}
	);
}