plugin-icon

Sticky Postbox

제작자: Enrico Sorcinelli·
Add sticky feature to administration meta boxes.
버전
1.3.0
활성화된 설치 항목
20
최근 업데이트일
Jul 13, 2022

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.

무료유료 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 6.0.13
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.