woocommerce_admin_html_order_item_class
Использование
add_filter( 'woocommerce_admin_html_order_item_class', 'wp_kama_woocommerce_admin_html_order_item_class_filter', 10, 3 ); /** * Function for `woocommerce_admin_html_order_item_class` filter-hook. * * @param $class * @param $item * @param $order * * @return */ function wp_kama_woocommerce_admin_html_order_item_class_filter( $class, $item, $order ){ // filter... return $class; }
- $class
- -
- $item
- -
- $order
- -
Где вызывается хук
woocommerce_admin_html_order_item_class
woocommerce/includes/admin/meta-boxes/views/html-order-item.php 15
$row_class = apply_filters( 'woocommerce_admin_html_order_item_class', ! empty( $class ) ? $class : '', $item, $order );