[WordPress] 外掛分享: BlackIce Admin Date Column fix for WooCommerce

首頁外掛目錄 › BlackIce Admin Date Column fix for WooCommerce
全新外掛
安裝啟用
尚無評分
1083 天前
最後更新
問題解決
v1.2.0 上架:2020-10-01

內容簡介

此外掛可將完整時間和日期添加到日期欄中,以解決對於「1小時前」顯示不夠清晰的問題。
這並不是最好的解決方法,因為核心函數 render_order_date_column https://github.com/woocommerce/woocommerce/blob/a7d57a248ed03dac7bad119e71f83dd961f43cb3/includes/admin/list-tables/class-wc-admin-list-table-orders.php(在我看來)沒有正確實現過濾器。您可以為日期欄添加過濾器,但它僅對於大於1天的訂單字段有效。

這是一個快速修復,它會在不影響大於1天訂單的情況下,在「1小時」輸出旁邊添加完整時間和日期。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「BlackIce Admin Date Column fix for WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Adds the full time and date to the date column for those that find the ‘1 hour ago’ stupid.
This isn’t the best fix going, since the core function render_order_date_column in https://github.com/woocommerce/woocommerce/blob/a7d57a248ed03dac7bad119e71f83dd961f43cb3/includes/admin/list-tables/class-wc-admin-list-table-orders.php
does not (imo) implent a filter correctly. You can add a filter for the date column, BUT it’s only effective on the field for orders greater than 1 day.
This is a quick fix to add a full time and date alongside the ‘1 hour’ output without affecting it or duplicating the output on orders greater than 1 day.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon