woocommerce_admin_features хук-фильтрWC 1.0

Gets a build configured array of enabled WooCommerce Admin features/sections, but does not respect optionally disabled features.

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

add_filter( 'woocommerce_admin_features', 'wp_kama_woocommerce_admin_features_filter' );

/**
 * Function for `woocommerce_admin_features` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_admin_features_filter( $array ){

	// filter...
	return $array;
}
$array
-

Где вызывается хук

Features::get_features()
woocommerce/src/Admin/Features/Features.php 74
return apply_filters( 'woocommerce_admin_features', array() );

Где используется хук в WooCommerce

woocommerce/src/Internal/Admin/FeaturePlugin.php 190
add_filter( 'woocommerce_admin_features', array( $this, 'replace_supported_features' ), 0 );