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

Extendable columns to show on the shipping classes screen.

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

add_filter( 'woocommerce_shipping_classes_columns', 'wp_kama_woocommerce_shipping_classes_columns_filter' );

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

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

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

WC_Settings_Shipping::output_shipping_class_screen()
woocommerce_shipping_classes_columns
woocommerce/includes/admin/settings/class-wc-settings-shipping.php 393-401
$shipping_class_columns = apply_filters(
	'woocommerce_shipping_classes_columns',
	array(
		'wc-shipping-class-name'        => __( 'Shipping class', 'woocommerce' ),
		'wc-shipping-class-slug'        => __( 'Slug', 'woocommerce' ),
		'wc-shipping-class-description' => __( 'Description', 'woocommerce' ),
		'wc-shipping-class-count'       => __( 'Product count', 'woocommerce' ),
	)
);

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

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