报告 table 和库存页面中的 Woocommerce 产品描述

Woocommerce product description in reports table & stock page

是否有视觉挂钩或方法将产品描述包含在下面的 table 中的产品名称下,甚至不显示产品名称,而是显示产品名称和产品描述。

https://snipboard.io/1Lw6CE.jpg

如果有可能在以下 table 个股票中实现同样的效果:

https://snipboard.io/ASBtMG.jpg

非常感谢您的帮助,非常感谢

请试试这个代码

function woocommerce_report_update_title_desc_reports($title, $post){
global $current_screen;
if( $current_screen->id == 'woocommerce_page_wc-reports' && is_admin() ) :
    if( is_numeric($post) && get_post_type($post) == 'product' ) :
        $product = wc_get_product($post);
        $title .= ' — ' . $product->get_short_description(); //$product->get_description();
    elseif( is_object($post) ) : //Check Is Product
        $title .= ' — ' . $post->get_short_description(); //$product->get_description();
    endif;
endif; //Endif  
return $title;  
}

add_filter('the_title', 'woocommerce_report_update_title_desc_reports', 10, 2);
add_filter('woocommerce_product_get_name', 'woocommerce_report_update_title_desc_reports', 10, 2);