Automattic\WooCommerce\Internal\Admin

Coupons::move_coupons()publicWC 1.0

Modify registered post type shop_coupon

{} It's a method of the class: Coupons{}

No Hooks.

Return

Array. the filtered parameters.

Usage

$Coupons = new Coupons();
$Coupons->move_coupons( $args );
$args(array) (required)
Array of post type parameters.

Code of Coupons::move_coupons() WC 7.1.0

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