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

Restrict Widgets

Description

Restrict Widgets is all in one solution for widget management in WordPress. It lets you easily control the pages that each widget will appear on and avoid creating multiple sidebars and duplicating widgets. You can also set who can manage widgets, which sidebars and widgets will be available to selected users, which widget options will be available and how it will be displayed.

By default, Hide widget on selected is enabled with no options selected, so all current widgets will continue to display on all pages.

For more information, check out plugin page at dFactory or plugin support forum.

Features include:

  • Hide or display each widget on selected pages, posts, categories, custom taxonomies, custom post types, single posts, archives, special pages, for logged in or logged out users, current language, mobile device and so on
  • Select which user roles are restricted to manage widgets
  • Select which sidebars will be restricted to admins only
  • Select which widgets will be restricted to admins only
  • Select which widget options will be restricted to admins only
  • Choose to display or not widget options as groups
  • Option to modify the is_active_sidebar() function to use Restrict Widgets display settings
  • Multisite compatible
  • WPML compatible
  • Polylang compatible
  • .pot file for translations included

Translations:

屏幕截图

  • screenshot-1.png
  • screenshot-2.png

Installation

  1. Install Restrict Widgets either via the WordPress.org plugin directory, or by uploading the files to your server
  2. 通过WordPress的“插件”菜单激活插件
  3. Go to the Widgets menu and set your desired widgets options.

常见问题

No questions yet.

Installation Instructions
  1. Install Restrict Widgets either via the WordPress.org plugin directory, or by uploading the files to your server
  2. 通过WordPress的“插件”菜单激活插件
  3. Go to the Widgets menu and set your desired widgets options.

Reviews

2019年3月24日
Отличный плагин! простой в использовании и легкий.
2018年9月25日
I know this plugin has net been updated recently but it seems to always just work flawlessly. Working with WP 4.9.8
2017年10月26日
Perfect, quick and easy, did exactly what I wanted - shows certain widgets only to logged-on users.
2017年9月19日
Works with SiteOrigin pagebuilder, quick and easy to use.
阅读所有的35评价

Contributors & Developers

“Restrict Widgets” 是开源软件。 以下人员对此插件做出了贡献。

Contributors

“Restrict Widgets” 已翻译成9 语言环境。 感谢译者的贡献。

将“Restrict Widgets”翻译成您的语言。

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

更新日志

1.3.1

  • New: Categories and Tags available in Taxonomy selection
  • Tweak: Removed local translation files in favor of WP repository translations.

1.3.0

  • New: Customizer support
  • New: Dedicated options page
  • Tweak: Switched from Chosen.js to Select2 script
  • Tweak: General code cleanup

1.2.9

1.2.8

1.2.7

  • Fix: Enable display/hide on any single page
  • Tweak: Change post type archive detection from get_post_type() to get_query_var

1.2.6.1

  • Fix: Page hide/display settings broken after 1.2.6 update

1.2.6

1.2.5

  • Tweak: UI improvements
  • Tweak: jQuery chosen updated to 1.2.0

1.2.4

  • Tweak: Widget options interface adjustments
  • Tweak: Confirmed WP 4.0 compatibility

1.2.3

  • Fix: Language options not accessible for WPML and Polylang

1.2.2

  • Tweak: UI fixes for WP 3.8

1.2.1

  • Fix: tags not working properly
  • Tweak: UI fixes for WP 3.8

1.2.0

  • New: Multisite support
  • New: Option to hide / show widget depending on the device (mobile or not)
  • New: bbPress specific options for hide / show widget
  • Fix: get_class error on widgets not using Widgets API
  • Fix: Logged-in or out users option not working properly

1.1.4

  • New: Introducing rw_option_display_name filter hook
  • Tweak: WPML not displaying page names in default site language

1.1.3

  • New: Czech translation by Martin Kucera

1.1.2

  • New: Option to modify the is_active_sidebar() function to use Restrict Widgets display settings
  • Fix: Compatibility fix for WordPress 3.6

1.1.1

  • Tweak: Optimized rw_display_widget() filter
  • New: Chinese translation by Changmeng Hu

1.1.0

  • Fix: Show on selected not working in some cases
  • Fix: Restricting on user_logged_in/out
  • Fix: Restricting for Polylang and WPML languages
  • New: Introducing filter rw_display_widget()

1.0.1

  • Fix: Widget options not saving if no options selected

1.0

Initial release