Automattic\WooCommerce\Internal\Admin
Coupons::fix_coupon_menu_highlight()
Undo WC modifications to $parent_file for 'shop_coupon'
Метод класса: Coupons{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Coupons = new Coupons(); $Coupons->fix_coupon_menu_highlight();
Код Coupons::fix_coupon_menu_highlight() Coupons::fix coupon menu highlight WC 8.7.0
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 } }