久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

更改訂單項在 WooCommerce 管理訂單頁面中顯示的元

Change order item displayed meta key label in WooCommerce admin order pages(更改訂單項在 WooCommerce 管理訂單頁面中顯示的元鍵標簽)
本文介紹了更改訂單項在 WooCommerce 管理訂單頁面中顯示的元鍵標簽的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

以下 僅在 WooCommerce Admin 單個訂單中顯示產品自定義字段 對我上一個問題的回答,其中:

Following Display a product custom field only in WooCommerce Admin single orders answer to my previous question, which:

  1. 添加自定義 SKU 字段(文章 ID)
  2. 將自定義 SKU(ArticleID)保存為隱藏訂單項元數據
  3. 將自定義 SKU(商品 ID)保存為手動訂單的隱藏訂單項元數據

如何更改管理單訂單頁面的訂單行項目部分顯示的元鍵標簽 _articleid?

How can I change the displayed meta key label _articleid on order line items section of the admin single order pages?

現在它顯示SKU",即變體 ID"(用于產品變體)和_articleid".

Right now it shows the "SKU", the "Variation ID" (for product variations) and the "_articleid".

我想替換顯示的_articleid"帶有文章 ID"相反.

I'd like to replace displayed "_articleid" with "Article ID" instead.

有什么幫助嗎?

推薦答案

您將使用以下內容將顯示的鍵標簽 _articleid 替換為例如 WooCommerce 管理單訂單上的訂單項中的文章 ID":

You will use the following to replace displayed key label _articleid with for example 'Article ID' in order items on WooCommerce admin single orders:

add_filter('woocommerce_order_item_display_meta_key', 'filter_wc_order_item_display_meta_key', 20, 3 );
function filter_wc_order_item_display_meta_key( $display_key, $meta, $item ) {

    // Change displayed label for specific order item meta key
    if( is_admin() && $item->get_type() === 'line_item' && $meta->key === '_articleid' ) {
        $display_key = __("Article ID", "woocommerce" );
    }
    return $display_key;
}

代碼位于活動子主題(或活動主題)的functions.php 文件中.它應該有效.

Code goes in functions.php file of the active child theme (or active theme). It should works.

相關:

更改訂單項WooCommerce 管理訂單中的自定義元數據顯示標簽和值

與此線程相關:

  • 如何展示產品WooCommerce 訂單中的自定義字段(自定義 SKU)
  • 顯示產品自定義字段僅在手動訂單的 WooCommerce 管理單個訂單中

這篇關于更改訂單項在 WooCommerce 管理訂單頁面中顯示的元鍵標簽的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Add programmatically a downloadable file to Woocommerce products(以編程方式將可下載文件添加到 Woocommerce 產品)
Get today#39;s total orders count for each product in Woocommerce(獲取今天 Woocommerce 中每種產品的總訂單數)
Add Custom registration fields in WooCommerce and phone field validation issue(在 WooCommerce 和電話字段驗證問題中添加自定義注冊字段)
Add a select field that will change price in Woocommerce simple products(在 Woocommerce 簡單產品中添加一個將更改價格的選擇字段)
Add custom columns to admin products list in WooCommerce 3(在 WooCommerce 3 中將自定義列添加到管理產品列表)
Customizing checkout quot;Place Orderquot; button output html(自定義結帳“下訂單按鈕輸出html)
主站蜘蛛池模板: www.国产精品 | www.一级片 | 玖玖玖在线 | 综合自拍| 国产午夜精品一区二区三区在线观看 | 中文字幕日韩欧美一区二区三区 | 女同久久另类99精品国产 | 久久国产精品免费一区二区三区 | 亚洲精品9999 | 中文字幕在线一区二区三区 | 成人av一区 | 中文字幕乱码视频32 | 亚洲一区久久 | 国产免费黄网 | 亚洲一区 中文字幕 | 精品一区二区视频 | 99精品国产一区二区青青牛奶 | 视频一区二区三区中文字幕 | 337p日本欧洲亚洲大胆鲁鲁 | www.天天干.com | 亚洲高清在线观看 | 极品在线 | 精品伊人久久 | 一级毛片大全免费播放 | 四色永久 | 在线免费观看欧美 | 一区二区三区四区国产 | 欧美一区二区三区在线看 | 天天躁日日躁性色aⅴ电影 免费在线观看成年人视频 国产欧美精品 | 欧美黑人一区二区三区 | 网站黄色在线免费观看 | 99视频在线播放 | 亚洲欧美久久 | 中文字幕av一区二区三区 | 久久久久久久久久久久久9999 | 国产伦一区二区三区 | 天堂网色 | 欧美精品片 | 国产精品1| 天天精品在线 | 国产91黄色|