前言介紹
- 這款 WordPress 外掛「Meta Optimizer」是 2022-10-20 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2023-09-12,距離現在已有 600 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.3 以上。
- 有 2 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
meta | post meta | term-meta | user meta | comment meta |
內容簡介
WordPress 會將每篇文章、回應、使用者和分類詞彙的 Meta 儲存在一個新的資料列。透過此外掛,您可以將它們全部儲存在單一資料列,每個欄位將成為一個 Meta 關鍵字。
此外掛能夠使用 WordPress 的預設函式並支援所有使用 WordPress 標準函式和觸發器的外掛。
功能
為每個 WordPress Meta 資料表 (文章 / 回應 / 使用者 / Meta) 建立資料庫表格。
支援 WordPress 查詢。
更快速的查詢及簡易匯出。
匯入預設 WordPress Meta 表格的舊資料。
略過特定欄位的核心 Meta 資料表格。
透過匯出單一表格輕鬆匯出所有資料。
整合
Advanced Custom Fields 及其專業版。
Meta Box – WordPress Custom Fields Framework 及其專業版。
CMB2
所有使用 WordPress 標準函式和觸發器的外掛和佈景主題。
注意事項
若您使用保留的欄位關鍵字,例如 post_id 用於文章 Meta,此外掛會在 Meta 關鍵字後綴上增加字串,並以更名後的關鍵字建立資料行。例如,如果您使用關鍵字 post_id 儲存 Meta,外掛會新增 _wpmork 後綴並建立名為 post_id_wpmork 的資料行。在回應查詢 (WP_Query) 時,若必要,此外掛將自動更改 Meta 關鍵字。
範例:更新文章 Meta
update_post_meta(1, 'post_id', 222);
Meta 關鍵字已更改為:
update_post_meta(1, 'post_id_wpmork', 222);
範例:查詢
$query = new WP_Query(array(
'orderby' => array(
'post_id' => 'DESC'
),
'meta_query' => array(
'post_id' => array(
'key' => 'post_id',
'compare' => 'EXISTS',
'type' => 'NUMERIC'
)
)
));
此外掛將查詢改為:
$query = new WP_Query(array(
'orderby' => array(
'post_id_wpmork' => 'DESC'
),
'meta_query' => array(
'post_id_wpmork' => array(
'key' => 'post_id_wpmork',
'compare' => 'EXISTS',
'type' => 'NUMERIC'
)
)
));
原文外掛簡介
This plugin optimizes WordPress meta data storage by saving all meta data for each post, comment, user, or term in a single row with separate columns for each meta key. This reduces the number of rows and improves the query performance and data export. The plugin works seamlessly with WordPress core functions and hooks, and supports any plugins that use them. Some of the features of this plugin are:
Custom database tables for each type of meta data (post, comment, user, term)
Compatibility with WordPress queries
Faster queries and easy data export
Data migration from default WordPress meta tables
Option to exclude specific fields from core meta tables
Support for popular plugins and themes such as Advanced Custom Fields, Meta Box, CMB2, and more.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Meta Optimizer」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.2 | 1.3 | 1.4 | 1.2.1 | 1.2.2 | trunk |
延伸相關外掛(你可能也想知道)
Comments Extra Fields For Post,Pages and CPT 》這個外掛讓管理員可以在評論區添加自定義欄位。這些欄位會以評論元描述方式存儲,並在評論文本下顯示。支援四種字段類型。, 現場演示, 建立自定義欄位, 功能,...。
MB Comment Meta 》MB Comment Meta 是一個擴充自Meta Box外掛的 WordPress 插件,可在評論區新增自定義欄位。, 該插件支援來自 Meta Box 的所有欄位類型:文字、下拉選單、色彩...。
WP Private Comment Notes 》WP Private Comment Notes 可讓 WordPress 管理員/版主為每個通過 WordPress 評論系統留下的評論添加和管理私人筆記。此外,每個筆記都可以與留下原始評論的...。