Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/humanmade/Unpublish
A plugin for unpublishing content.
https://github.com/humanmade/Unpublish
Last synced: 3 months ago
JSON representation
A plugin for unpublishing content.
- Host: GitHub
- URL: https://github.com/humanmade/Unpublish
- Owner: humanmade
- Created: 2013-10-21T22:21:28.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2021-09-20T04:21:22.000Z (about 3 years ago)
- Last Synced: 2024-04-03T15:31:33.812Z (7 months ago)
- Language: PHP
- Size: 310 KB
- Stars: 24
- Watchers: 24
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
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.
1. Activate the plugin through the`Plugins` menu in WordPress.
1. 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](https://github.com/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](https://hmn.md/) for high volume and large-scale sites. Thanks to all our [contributors](https://github.com/humanmade/Unpublish/graphs/contributors).Interested in joining in on the fun? [Join us, and become human!](https://hmn.md/is/hiring/)