Title: Sticky Postbox
Author: Enrico Sorcinelli
Published: <strong>2022 年 7 月 13 日</strong>
Last modified: 2022 年 7 月 13 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/sticky-postbox/assets/icon-256x256.png?rev=2755921)

# Sticky Postbox

 作者：[Enrico Sorcinelli](https://profiles.wordpress.org/enricosorcinelli/)

[下载](https://downloads.wordpress.org/plugin/sticky-postbox.1.3.0.zip)

 * [详情](https://cn.wordpress.org/plugins/sticky-postbox/#description)
 * [评价](https://cn.wordpress.org/plugins/sticky-postbox/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/sticky-postbox/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/sticky-postbox/#developers)

 [支持](https://wordpress.org/support/plugin/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.

## 屏幕截图

[⌊Sticky meta box in classic edit post.⌉⌊Sticky meta box in classic edit post.⌉[

Sticky meta box in classic edit post.

[⌊Sticky meta box in Dashboard.⌉⌊Sticky meta box in Dashboard.⌉[

Sticky meta box in Dashboard.

## 安装

This section describes how to install the plugin and get it working.

 1. Upload the plugin files to the `/wp-content/plugins/sticky-postbox` directory, 
    or install the plugin through the WordPress _Plugins_ screen directly.
 2. Activate the plugin through the _Plugins_ screen in WordPress.

## 常见问题

### Does it work with Gutenberg?

This plugin is intended to work with Classic Editor and Dashboards meta boxes.

### Does it work with multisite installation?

Yes

## 评价

此插件暂无评价。

## 贡献者及开发者

「Sticky Postbox」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Enrico Sorcinelli ](https://profiles.wordpress.org/enricosorcinelli/)

[帮助将「Sticky Postbox」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/sticky-postbox)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/sticky-postbox/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/sticky-postbox/)，或通过[RSS](https://plugins.trac.wordpress.org/log/sticky-postbox/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/sticky-postbox/)。

## 更新日志

For plugin changelog, please see [the Releases page on GitHub](https://github.com/enrico-sorcinelli/sticky-postbox/releases).

## 额外信息

 *  版本 **1.3.0**
 *  最后更新：**4 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 4.4 或更高版本 **
 *  已测试的最高版本为 **6.0.12**
 *  PHP 版本 ** 5.2.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/sticky-postbox/)
 * 标签
 * [administration](https://cn.wordpress.org/plugins/tags/administration/)[dashboard](https://cn.wordpress.org/plugins/tags/dashboard/)
   [options](https://cn.wordpress.org/plugins/tags/options/)[post](https://cn.wordpress.org/plugins/tags/post/)
   [sticky](https://cn.wordpress.org/plugins/tags/sticky/)
 *  [高级视图](https://cn.wordpress.org/plugins/sticky-postbox/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/sticky-postbox/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/sticky-postbox/reviews/)

## 贡献者

 *   [ Enrico Sorcinelli ](https://profiles.wordpress.org/enricosorcinelli/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/sticky-postbox/)