Automattic\WooCommerce\Internal\Admin

Coupons::coupon_menu_moved()publicWC 1.0

Call back for transition menu item

Method of the class: Coupons{}

No Hooks.

Return

null. Nothing.

Usage

$Coupons = new Coupons();
$Coupons->coupon_menu_moved();

Coupons::coupon_menu_moved() code WC 7.1.0

public function coupon_menu_moved() {
	wp_safe_redirect( $this->get_legacy_coupon_url(), 301 );
	exit();
}