GithubHelp home page GithubHelp logo

isabella232 / publishing-checklist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from humanmade/publishing-checklist

0.0 0.0 0.0 327 KB

Pre-flight your posts.

JavaScript 10.55% CSS 3.77% Shell 12.87% PHP 70.19% SCSS 2.63%

publishing-checklist's Introduction

Publishing Checklist

Contributors: fusionengineering, danielbachhuber, davisshaver
Tags: editorial, checklist, publishing, preflight
Requires at least: 4.2
Tested up to: 4.3
Stable tag: 0.1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Pre-flight your posts.

Description##

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.

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.

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 );
});

Frequently Asked Questions

Where will the checklist appear?

On Manage and Edit post screens.

Does the plugin come with any default checklists?

Not yet.

Screenshots

1. Checklist summaries will be displayed within a column on the Manage post screen.

Checklist summaries will be displayed within a column on the Manage post screen.

2. Checklists will also be displayed within the Publish metabox on the Edit screen.

Checklists will also be displayed within the Publish metabox on the Edit screen.

Changelog

0.1.0 (June 26, 2015)

publishing-checklist's People

Contributors

abhishek-kaushik avatar danielbachhuber avatar datnguyen-sc avatar davisshaver avatar goldenapples avatar mattheu avatar ntwb avatar pdewouters avatar than avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.