
內容簡介
JSM's Show Post Metadata外掛會在文章編輯頁面底部顯示文章(例如文章、頁面和自訂文章類型)的meta key(也就是自訂欄位名稱)和它們的非序列化值。
使用者必須具有 WordPress 的 manage_options 能力 (允許進入管理選項),才能查看文章元數據meta box和刪除個別的 meta key 的 manage_options 能力。
可以使用 'jsmspm_show_metabox_capability' 和 'jsmspm_delete_meta_capability' 兩個filters修改預設的 manage_options 能力(請查看外掛資料夾中的 filters.txt)。
這個外掛沒有任何設定 - 只需安裝和啟用即可。
相關外掛
JSM 的 Show Comment Metadata
JSM's Show Term Metadata
JSM's Show User Metadata
JSM's Show Registered Shortcodes
外掛標籤
開發者團隊
原文外掛簡介
The JSM Show Post Metadata plugin displays post (ie. posts, pages, and custom post types) meta keys (aka custom field names) and unserialized values in a metabox at the bottom of the post editing page.
Note that if you’re using WooCommerce HPOS (High-Performance Order Storage), available since WooCommerce v8.2, then your WooCommerce orders are NOT post objects and you should use the JSM Show Order Metadata plugin instead.
There are no plugin settings – simply install and activate the plugin.
Available Filters for Developers
Filter the post meta shown in the metabox:
'jsmspm_metabox_table_metadata' ( array $metadata, $post_obj )
Array of regular expressions to exclude meta keys:
'jsmspm_metabox_table_exclude_keys' ( array $exclude_keys, $post_obj )
Capability required to show post meta:
'jsmspm_show_metabox_capability' ( 'manage_options', $post_obj )
Show post meta for a post type (defaults to true):
'jsmspm_show_metabox_post_type' ( true, $post_type )
Capability required to delete post meta:
'jsmspm_delete_meta_capability' ( 'manage_options', $post_obj )
Icon for the delete post meta button:
'jsmspm_delete_meta_icon_class' ( 'dashicons dashicons-table-row-delete' )
Related Plugins
JSM Show Comment Metadata
JSM Show Order Metadata for WooCommerce HPOS
JSM Show Post Metadata
JSM Show Term Metadata
JSM Show User Metadata
JSM Show Registered Shortcodes
