Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin

SyncUI::init_hooks()publicWC 1.0

Performs any work needed to add hooks and otherwise integrate with the wider system, except in the case where the current user is not a site administrator, no hooks will be initialized.

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

No Hooks.

Return

null. Nothing.

Usage

$SyncUI = new SyncUI();
$SyncUI->init_hooks();

Code of SyncUI::init_hooks() WC 7.1.0

final public function init_hooks() {
	if ( ! Users::is_site_administrator() ) {
		return;
	}

	add_filter( 'woocommerce_debug_tools', array( $this, 'add_tools' ) );
}