{"id":37691,"date":"2015-07-22T05:38:43","date_gmt":"2015-07-22T05:38:43","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/revised-publishing-status\/"},"modified":"2016-08-09T11:05:22","modified_gmt":"2016-08-09T11:05:22","slug":"revised-publishing-status","status":"publish","type":"plugin","link":"https:\/\/pan.wordpress.org\/plugins\/revised-publishing-status\/","author":40619,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.8.6","stable_tag":"trunk","tested":"4.6.0","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"Revised Publishing Status","header_author":"yivi","header_description":"","assets_banners_color":"f1f0f1","last_updated":"2016-08-09 11:05:22","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.yivoff.com\/plugins\/revised-status","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3169,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"1249868","resolution":"1544x500","location":"assets"},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1249868","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.6.2","0.7.0","0.8.1","v0.8.2","v0.8.3","v0.8.4","v0.8.5","v0.8.6"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1204141","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1204142","resolution":"2","location":"assets"}},"screenshots":{"1":"The new revision status metabox","2":"Options page to enable publishing status history for registered post types."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[54065,6243],"plugin_category":[],"plugin_contributors":[94255],"plugin_business_model":[],"class_list":["post-37691","plugin","type-plugin","status-publish","hentry","plugin_tags-publishing-status","plugin_tags-revisions","plugin_contributors-yivi","plugin_committers-yivi"],"banners":{"banner":"https:\/\/ps.w.org\/revised-publishing-status\/assets\/banner-772x250.jpg?rev=1249868","banner_2x":"https:\/\/ps.w.org\/revised-publishing-status\/assets\/banner-1544x500.jpg?rev=1249868","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/revised-publishing-status_f1f0f1.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/revised-publishing-status\/assets\/screenshot-1.png?rev=1204141","caption":"The new revision status metabox"},{"src":"https:\/\/ps.w.org\/revised-publishing-status\/assets\/screenshot-2.png?rev=1204142","caption":"Options page to enable publishing status history for registered post types."}],"raw_content":"<!--section=description-->\n<p>Sometimes it would be useful to track changes in publishing status throughout time, but native WP revisions will always inherit the parent's publishing status.<\/p>\n\n<p>This plugin enables saving the post status ('published', 'draft', 'pending', etc) with each revision, so you can track publishing status where you have many users and accountability is desirable.<\/p>\n\n<h4>Available Hooks<\/h4>\n\n<pre><code>wp-revised-status_tracked-posttypes\n<\/code><\/pre>\n\n<p>You can use this to set up posttypes to track without using the options page. Your function should return an associative array.<\/p>\n\n<p>E.g.:<\/p>\n\n<pre><code> add_filter( 'wp-revised-status_tracked-posttypes', function( $enabled ) {\n $enabled['post'] = 1;\n $enabled['page'] = 1;\n\n return $enabled;\n }\n\n\nwp-revised-status_untracked-posttypes\n<\/code><\/pre>\n\n<p>Exactly the inverse of the previous hook. ** What you disable on this hook takes precedence to what you enable in the <code>tracked_posttypes<\/code> one.<\/p>\n\n<p>E.g.:<\/p>\n\n<pre><code>function my_plugin_no_history( $disabled ) {\n    $disabled['page'] = 1;\n\n    return $disabled;\n}\nadd_filter( 'wp-revised-status_untracked-posttypes', 'my_plugin_no_history' );\n\n\nwp-status-revised_disable-options\n<\/code><\/pre>\n\n<p>If you are using the plugin inside a theme or another plugin, and want to disable the options page, you can just do:<\/p>\n\n<pre><code>add_filter( 'wp-status-revised_disable-options', '__return_true' )\n<\/code><\/pre>\n\n<h4>Github<\/h4>\n\n<p>Github repository at plugin at https:\/\/github.com\/yivi\/wp-revised-status<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unzip plugin's files in a folder inside <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Where is published information saved?<\/dt>\n<dd><p>An entry will be created on your post_meta for each revision, that will be deleted whenever a revision is deleted.<\/p><\/dd>\n<dt>Are custom post types supported?<\/dt>\n<dd><p>Any post type properly registered is supported. You need to enable support for any post type either through the settings page or using the appropriate filters.<\/p><\/dd>\n<dt>Are custom post statuses supported?<\/dt>\n<dd><p>Any custom post type registered should work... but let me know if it doesn't. :)<\/p><\/dd>\n<dt>Does this work with PHP &lt; 5.3?<\/dt>\n<dd><p>No, sorry. PHP5.3 at a minimum, but at least 5.4 is recommended.<\/p><\/dd>\n\n<\/dt><\/dl>\n\n<!--section=changelog-->\n<h4>0.8.1<\/h4>\n\n<ul>\n<li>Inline documentation in settings page<\/li>\n<li>Show which settings have been set via filter hooks, and disable the gui for those.<\/li>\n<\/ul>\n\n<h4>0.7.0<\/h4>\n\n<ul>\n<li>Minor refactoring of main plugin classes<\/li>\n<\/ul>\n\n<h4>0.6.2<\/h4>\n\n<ul>\n<li>Minor packaging fixes<\/li>\n<\/ul>\n\n<h4>0.6<\/h4>\n\n<ul>\n<li>Initial public release<\/li>\n<\/ul>","raw_excerpt":"Saves and restores publishing status in post revisions, replacing the default Revisions metabox with a modified metabox with pub status.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/37691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=37691"}],"author":[{"embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/yivi"}],"wp:attachment":[{"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=37691"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=37691"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=37691"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=37691"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=37691"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pan.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=37691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}