This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.



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, and API documentation at


If you spot any issues, or want to know how to contribute, please visit

Please note that I have open-sourced this plugin to give back to the community, and do not have much spare time to answer support queries, but I’ll help where I can.

عکس‌های صفحه

  • 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!


  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:

        - Uncategorized
        - Featured

    max-size: 100
    format: jpg
        width: 760
        height: 350

    min-length: 30
    max-length: 300

    publish-time: '15:00'

        open-in-new-tab: false
        open-in-new-tab: true


      - table
      - div
      - span
      - style
      - script

سوالات متداول

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.

نقد و بررسی‌ها

نقد و بررسی‌ای برای این افزونه یافت نشد.

توسعه دهندگان و همکاران

“Secretary” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

ترجمه “Secretary” به زبان شما.

علاقه‌ مند به توسعه هستید؟

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

گزارش تغییرات


  • Removes an accidentally committed internal-facing README file


  • Removed unneeded ‘assets/’ directory


  • Tested with Gutenberg


  • Initial release