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

HEXTWO Category Sanity

描述

Hextwo Category Sanity

A simple plugin to prevent posting with no category, Uncategorized category, or more than one category selected.

What it does.

  1. If you forget to check a category box and try to publish your post, it will pop an alert telling you the you must select a category before you publish.
  2. If you have previously selected the uncategorized category and try to publish, it will pop an alert telling you that you mus uncheck the Uncategorized category.
  3. If you have two or more categories selected and try to publish it will pop an alert and tell you that you may only select one category.

If the current post type does not support the built-in WordPress category taxonomy, the script bails and does nothing. This will only affect posts with Category support.

In the future I might add a selection tool to allow specifying a number of categories that are allowable, but for now, I think one is a good starting point.

屏幕截图

  • This screenshot shows an alert that you have not set a category.
  • This screenshot shows an alert that you have selected the Uncategorized category.
  • This screenshot shows an alert that you have selected more than one category.

安装

  1. Upload the plugin package to the plugins directory.
  2. Login to the dashboard and activate the plugin.

常见问题

Installation Instructions
  1. Upload the plugin package to the plugins directory.
  2. Login to the dashboard and activate the plugin.

评价

此插件暂无评价。

贡献者及开发者

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

贡献者

将“HEXTWO Category Sanity”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.0 Initial Release 2018/02/11git status