wc_admin_show_legacy_coupon_menu filter-hookWC 10.5.0

Filter to determine whether to display the legacy coupon menu item.

Usage

add_filter( 'wc_admin_show_legacy_coupon_menu', 'wp_kama_wc_admin_show_legacy_coupon_menu_filter' );

/**
 * Function for `wc_admin_show_legacy_coupon_menu` filter-hook.
 * 
 * @param bool $display Whether the menu should be displayed or not.
 *
 * @return bool
 */
function wp_kama_wc_admin_show_legacy_coupon_menu_filter( $display ){

	// filter...
	return $display;
}
$display(true|false)
Whether the menu should be displayed or not.

Changelog

Since 10.5.0 Introduced.

Where the hook is called

In file: /src/Internal/Admin/CouponsMovedTrait.php
wc_admin_show_legacy_coupon_menu
woocommerce/src/Internal/Admin/CouponsMovedTrait.php 101-104
return apply_filters(
	'wc_admin_show_legacy_coupon_menu',
	! Features::is_enabled( 'navigation' )
);

Where the hook is used in WooCommerce

Usage not found.