Beskrivning
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.
Skärmdumpar
Installation
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 );
});
`
Vanliga frågor
- Where will the checklist appear?
-
On Manage and Edit post screens.
- Does the plugin come with any default checklists?
-
Not yet.
Recensioner
Bidragsgivare och utvecklare
”Publishing Checklist” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.
Bidragande personerÖversätt ”Publishing Checklist” till ditt språk.
Intresserad av programutveckling?
Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.