Automattic\WooCommerce\Internal\Utilities

WebhookUtil::__constructpublicWC 1.0

Creates a new instance of the class.

Method of the class: WebhookUtil{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WebhookUtil = new WebhookUtil();
$WebhookUtil->__construct();

WebhookUtil::__construct() code WC 10.8.1

public function __construct() {
	add_action( 'deleted_user', array( $this, 'reassign_webhooks_to_new_user_id' ), 10, 2 );
	add_action( 'delete_user_form', array( $this, 'maybe_render_user_with_webhooks_warning' ), 10, 2 );
}