Automattic\WooCommerce\Internal\Admin

Coupons::move_coupons()publicWC 1.0

Modify registered post type shop_coupon

Метод класса: Coupons{}

Хуков нет.

Возвращает

Массив. the filtered parameters.

Использование

$Coupons = new Coupons();
$Coupons->move_coupons( $args );
$args(массив) (обязательный)
Array of post type parameters.

Код Coupons::move_coupons() WC 8.7.0

public function move_coupons( $args ) {
	$args['show_in_menu'] = current_user_can( 'manage_woocommerce' ) ? 'woocommerce-marketing' : true;
	return $args;
}