Automattic\WooCommerce\Internal\Admin

Coupons::fix_coupon_menu_highlight()publicWC 1.0

Undo WC modifications to $parent_file for 'shop_coupon'

Method of the class: Coupons{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Coupons::fix_coupon_menu_highlight() code WC 8.6.1

public function fix_coupon_menu_highlight() {
	global $parent_file, $post_type;

	if ( $post_type === 'shop_coupon' ) {
		$parent_file = 'woocommerce-marketing'; // phpcs:ignore WordPress.WP.GlobalVariablesOverride
	}
}