WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

CouponPageMoved::init() public WC 1.0

Initialize our hooks.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of CouponPageMoved::init() WC 5.3.0

<?php
public function init() {
	if ( ! wc_coupons_enabled() ) {
		return;
	}

	add_action( 'admin_init', [ $this, 'possibly_add_note' ] );
	add_action( 'admin_init', [ $this, 'redirect_to_coupons' ] );
}