GithubHelp home page GithubHelp logo

unpublish's Introduction

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!

unpublish's People

Contributors

danielbachhuber avatar kucrut avatar peterwilsoncc avatar willmot 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.