WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

Coupons::maybe_add_coupon_menu_redirect() public WC 1.0

Maybe add menu item back in original spot to help people transition

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of Coupons::maybe_add_coupon_menu_redirect() WC 5.3.0

<?php
public function maybe_add_coupon_menu_redirect() {
	if ( ! $this->should_display_legacy_menu() ) {
		return;
	}

	add_submenu_page(
		'woocommerce',
		__( 'Coupons', 'woocommerce' ),
		__( 'Coupons', 'woocommerce' ),
		'manage_options',
		'coupons-moved',
		[ $this, 'coupon_menu_moved' ]
	);
}