Automattic\WooCommerce\Internal\Admin
Coupons::fix_coupon_menu_highlight
Undo WC modifications to $parent_file for 'shop_coupon'
Method of the class: Coupons{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Coupons = new Coupons(); $Coupons->fix_coupon_menu_highlight();
Coupons::fix_coupon_menu_highlight() Coupons::fix coupon menu highlight code WC 10.8.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
}
}