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

Publishing Checklist

描述

Publishing Checklist is a developer tool for adding pre-flight editorial checklists to WordPress posts. Each time a user saves a post, Publishing Checklist validates that post type’s list of tasks to make sure the content is ready for release. Tasks are validated with callbacks you supply when registering tasks.

屏幕截图

安装

It’s a plugin! Install it like any other.

Once you’ve done so, you’ll need to register the checklist items and callbacks for your site. Here’s a simple example that checks for a featured image.

`php

add_action( ‘publishing_checklist_init’, function() { $args = array( ‘label’ => esc_html__( ‘Featured Image’, ‘demo_publishing_checklist’ ), ‘callback’ => function ( $post_id ) { return has_post_thumbnail( $post_id ); }, ‘explanation’ => esc_html__( ‘A featured image is required.’, ‘demo_publishing_checklist’ ), ‘post_type’ => array( ‘post’ ), ); Publishing_Checklist()->register_task( ‘demo-featured-image’, $args ); }); `

常见问题

Where will the checklist appear?

On Manage and Edit post screens.

Does the plugin come with any default checklists?

Not yet.

评价

2016 年 9 月 3 日 1 回复
The idea is great and probably the best implementation in the editor I have seen. However, it does not do the job. Creators, please keep supporting this plugin 🙂
阅读所有2条评价

贡献者及开发者

「Publishing Checklist」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

0.1.0 (June 26, 2015)