跳到內容
  • 登入
  • 註冊
WordPress.org

Hong Kong 香港中文

  • 佈景主題
  • 外掛
  • News
  • Support
  • About
  • 重要通知
  • WordPress 常見問題
  • 團隊
  • 取得 WordPress
取得 WordPress

外掛

  • 我的收藏
  • Beta測試
  • 開發者
下載

Meta Optimizer

由Parsa Kafi
  • 詳情
  • 評價
  • 開發
支援

描述

WordPress saves every post/comment/user/term meta in new row. with this plugin you can save all of them to single row, and each column will be a meta key.

Plugin work with default WordPress functions and support all of plugins use WordPress standard functions and hooks.

Features

  • Create database tables for each of WordPress meta tables (Post/Comment/User/Meta).
  • Support WordPress Queries
  • Faster Queries & Easy Export
  • Import old data from default WordPress meta table
  • Bypass core meta tables for specific fields
  • Export all the data easier by exporting only one table

Integration

  • Advanced Custom Fields and Pro version
  • Meta Box – WordPress Custom Fields Framework and Pro version
  • CMB2
  • And all of plugins and themes use WordPress standard functions and hooks.

Attention

If you use reserved column keys such as post_id for post meta, the plugin adds a suffix to the meta key. It creates a column based on the renamed key. As an example, if you save meta with key post_id, then plugin adds _wpmork suffix and creates column post_id_wpmork. In response to a query (WP_Query), the plugin automatically changes the meta key if necessary.

Update post meta example
update_post_meta(1, 'post_id', 222);
The meta key has been changed to:
update_post_meta(1, 'post_id_wpmork', 222);

Example Query:
$query = new WP_Query(array(
'orderby' => array(
'post_id' => 'DESC'
),
'meta_query' => array(
'post_id' => array(
'key' => 'post_id',
'compare' => 'EXISTS',
'type' => 'NUMERIC'
)
)
));

Plugin changed query to this:
$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'
)
)
));

螢幕截圖

  • Tables tab, You can manage meta table columns.
  • Settings tab, Plugin options.
  • Import tab, Import options.
  • Preview of table structures

常見問題

What type of meta types supported?

Meta Optimizer can save default WordPress meta types like Post/User/Comment/Term.

Can I use this plugin for custom post types?

Yes, of course. Even though the plugin supports the built-in types of post and page, it is well suited to storing meta data for custom post types.

Can I rename meta key in DB tables?

Yes, You can rename meta key in default WP tables and plugin tables.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Meta Optimizer” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者
  • Parsa

將 Meta Optimizer 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

修改日誌

1.0

  • Release first version of plugin
  • Support get/add/update/delete meta functions and WordPress queries

其它

  • 版本:1.0
  • 最後更新:3 個月之前
  • 運作中的安裝:少於10
  • WordPress Version: 5.0 or higher
  • 已測試到版本:6.0.3
  • PHP Version: 7.0 or higher
  • 語言:
    English (US)
  • 標籤:
    comment metametapost metaterm-metauser meta
  • 進階顯示

評分

這個外掛尚無任何評分記錄。

Log in to submit a review.

貢獻者

  • Parsa

支援

最近兩個月解決了的問題:

1個中的0個

檢視支援論壇

捐贈

想要支援這個外掛的發展嗎?

贊助這個外掛

  • 關於我們
  • 最新消息
  • 寄存
  • 贊助基金會
  • Swag
  • 線上說明
  • 開發者資源
  • 共同參與
  • Learn
  • 展示網站
  • 外掛
  • 佈景主題
  • 區塊版面配置
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • 隱私權
  • Public Code
WordPress.org
WordPress.org

Hong Kong 香港中文

  • 訪問我們的 Facebook 專頁
  • 訪問我們的 Twitter 帳戶
  • Visit our Instagram account
  • Visit our LinkedIn account
代碼就是詩歌。