久久久久久久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)
主站蜘蛛池模板: 欧美视频成人 | 日韩视频一区在线观看 | 一级片毛片 | caoporon| 欧美福利精品 | 伊人导航| 亚洲人成网站777色婷婷 | av夜夜操 | 国产精品亚洲视频 | 成人深夜福利网站 | 欧美日韩在线免费观看 | 日韩中文字幕免费在线 | 亚洲视频一区二区三区 | 蜜桃av鲁一鲁一鲁一鲁 | 亚洲国产一区二区视频 | 欧美高清视频一区 | 欧美视频精品 | 爱高潮www亚洲精品 中文字幕免费视频 | 九九精品热 | 欧美一区二区三区在线免费观看 | 黄视频网址 | 久久精品欧美一区二区三区麻豆 | 欧美专区日韩 | 波多野结衣精品在线 | 国产免费色 | 中文字幕中文字幕 | 久久中文网| 国内精品久久久久久 | 在线免费观看黄网 | 欧美日韩国产中文 | 成人精品一区二区三区中文字幕 | 成人1区2区| 91亚洲欧美| 国产精品久久久久久久久久久新郎 | 99re热精品视频国产免费 | 一区二区视频 | 亚洲欧美在线视频 | 亚洲黄色高清视频 | 亚洲一区二区在线播放 | wwwxxx国产| 成人激情免费视频 |