[WordPress] 外掛分享: Sticky Postbox

首頁外掛目錄 › Sticky Postbox
20+
安裝啟用
尚無評分
10 天前
最後更新
問題解決
WordPress 4.4+ PHP 5.2.4+ v1.4.0 上架:2022-07-12

內容簡介

Sticky Postbox 是一款輕量級的 WordPress 外掛,旨在為管理介面的 meta box 增加固定功能,讓使用者可以將其固定在瀏覽器視窗的右上角,提升管理效率。

【主要功能】
• 支援每位使用者的個別設定
• 多站點支援,設定可跨站點共享
• 允許同時只有一個 meta box 固定

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Sticky Postbox」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Sticky Postbox is a piece of code written few years ago as exercise to learn how WordPress handles administration meta boxes’s availables statuses (closed, hidden and sortings).
This very lightweight plugin adds the sticky feature to administration meta boxes allowing them to be sticky at top right corner of the browser window.
Only one meta box can be sticky at once, so a new sticky meta box unstick the current one (if there is one).
Basic Features

Per-user settings.
Multisite support.

Usage
Once the plugin is installed and activated you can sticky administration meta boxes using sticky icon (it appears on the top right corner of each box).
API
Constants
You can use define following constants in your wp-config.php file.
STICKY_POSTBOX_DEBUG
Turn on debug messages (also WP_DEBUG has to be true).
Default to false.
STICKY_POSTBOX_GLOBAL_OPTIONS
In a Multisite installation, allows to shares user’s sticky meta boxes settings across all his sites. For example, if you sticky Publish box in editing Pages in a specific site, it will be sticky on all Pages of all sites.
Default to false.
STICKY_POSTBOX_AUTOENABLE
By default if the plugin has been activated, it starts automatically.
Define to false if you want to init it manually, for example:
// Activate manually the plugin once all plugin have been loaded.
add_action( 'plugins_loaded', function() {
\Sticky_Postbox::get_instance(
array(
'debug' => WP_DEBUG,
'global_options' => false,
)
);
} );

Hooks
Currently the plugin doesn’t have actions or filters.

延伸相關外掛

文章
Filter
Mastodon