Linux 软件免费装
Banner图

Secretary

开发者 ChrisBAshton
更新时间 2022年1月29日 20:46
捐献地址: 去捐款
WordPress版本: 5.9
版权: GPLv3
版权网址: 版权信息

标签

validate check quality qa secretary proofread

下载

1.0.1 1.0.0 1.0.2 1.0.3

详情介绍:

Users define their editorial rules in YAML (see Settings -> Secretary) according to a number of built-in rule functions. For example, Secretary can show a warning if you've forgotten to set a Featured Image for your post, by adding the featured-image rule to your YAML config. Secretary comes with a number of rules out of the box, but you can write your own custom plugins for Secretary by calling SecretaryRules::register. See example at https://github.com/ChrisBAshton/secretary-rule-gallery-at-top, and API documentation at https://github.com/ChrisBAshton/secretary.

安装:

  1. Install the plugin through the WordPress plugins screen directly
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Use the Settings->Secretary screen to configure the plugin (you can see all available rule configs on the right hand side of the screen)
Example YAML config below: ` categories: not: - Uncategorized not-only: - Featured featured-image: max-size: 100 format: jpg dimensions: width: 760 height: 350 excerpt: min-length: 30 max-length: 300 scheduled: publish-time: '15:00' links: internal: open-in-new-tab: false external: open-in-new-tab: true images: true html-checker: risky-html: - table - div - span - style - script `

屏幕截图:

  • Secretary warns you against common problems; in this case, the Featured Image set for the post was too large in filesize.
  • Secretary will only look for the rules you tell it to look for. There are a few built into the Secretary plugin, but you can install other plugins which define other rules.
  • The `HTML Checker` rule searches for HTML to warn your content editors that this is a brittle way of styling posts.
  • If all is well, you should see all green ticks!

常见问题:

How do I know what rules are available?

Look at the right hand side of the screen under Settings -> Secretary.

I'm getting a Config error: no such rule!

If you see something like: ❌ foo Config error: no such rule! ...it means you have asked Secretary to apply a rule which does not exist. Check your spelling.

更新日志:

1.0.1 1.0.0