Skip to content
humanmadePublic

About

A plugin for unpublishing content.

Resources

Stars

24 stars

Watchers

20 watching

Forks

Latest commit

 

History

75 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unpublish
Adds a setting under Publish in the WordPress post editor screen to allow unpublishing a post at a given date.
A Human Made project.

Have you ever wished you could set a post to be unpublished automatically at a preset date? Well now you can!

Introducing Unpublish

This plugin does one thing : it adds a setting to the post editor screen under the Publish section which allows you to enter a date by which the post will not be published anymore.

Installation

  1. Upload the unpublish folder to the /wp-content/plugins/ directory or just upload the ZIP package via Plugins > Add New > Upload in your WP Admin.
  2. Activate the plugin through thePlugins menu in WordPress.
  3. Place add_post_type_support( 'post', 'unpublish' ); in your theme's functions.php for example.

Frequently Asked Questions

Does it work with any post type?

Yes, as long as you modify the code accordingly:

$types = array( 'post', 'page' );
foreach( $types as $type ) {
	add_post_type_support( $type, 'unpublish' );`
}

Changelog

= 1.3 =

  • Fix bug where unpublished posts can not be restored from trash. Props ginaliao.

= 1.2 =

  • Protect meta key

= 1.1 =

  • Move unpublish field to appear immediatly below the publish date.
  • Alter schedule as post meta updates.
  • Match formatting of unpublish and publish time.
  • Ensure schedule is removed when posts are trashed.

Credits

Created by Human Made for high volume and large-scale sites. Thanks to all our contributors.

Interested in joining in on the fun? Join us, and become human!

About

A plugin for unpublishing content.

Resources

Stars

24 stars

Watchers

20 watching

Forks

Releases

Packages

Contributors

Languages