Automattic\WooCommerce\Admin\Features
Coupons::fix_coupon_menu_highlight() public WC 1.0
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 5.1.0
public function fix_coupon_menu_highlight() {
global $parent_file, $post_type;
if ( 'shop_coupon' === $post_type ) {
$parent_file = 'woocommerce-marketing'; // phpcs:ignore WordPress.WP.GlobalVariablesOverride
}
}