{"id":30200,"date":"2014-06-25T07:00:48","date_gmt":"2014-06-25T07:00:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/publish-confirm\/"},"modified":"2019-05-29T18:47:17","modified_gmt":"2019-05-29T18:47:17","slug":"publish-confirm","status":"closed","type":"plugin","link":"https:\/\/bs.wordpress.org\/plugins\/publish-confirm\/","author":14478331,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.2","stable_tag":"1.0.2","tested":"5.2.24","requires":"4.5","requires_php":"","requires_plugins":"","header_name":"Publish Confirm","header_author":"pluginkollektiv","header_description":"","assets_banners_color":"999999","last_updated":"2019-05-29 18:47:17","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_donations&business=TD4AMD2D8EMZW","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/publish-confirm\/","header_author_uri":"http:\/\/pluginkollektiv.org","rating":4.6,"author_block_rating":0,"active_installs":400,"downloads":16056,"num_ratings":0,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":[],"upgrade_notice":{"1.0.2":"<p>As the Gutenberg editor introduced in WordPress 5.0 contains a similar functionality, the development of this plugin is discontinued.<\/p>"},"ratings":{"1":"1","2":0,"3":0,"4":0,"5":"10"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"976406","resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"976406","resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"938277","resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"938277","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.0.3","0.0.4","0.0.5","0.0.6","0.1.0","1.0.0","1.0.1","1.0.2"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[19336,8381,5626,166,2970],"plugin_category":[],"plugin_contributors":[77798],"plugin_business_model":[],"class_list":["post-30200","plugin","type-plugin","status-closed","hentry","plugin_tags-confirm","plugin_tags-confirmation","plugin_tags-dialogue","plugin_tags-posts","plugin_tags-publish","plugin_contributors-pluginkollektiv","plugin_committers-bueltge","plugin_committers-kau-boy","plugin_committers-patrickrobrecht","plugin_committers-pluginkollektiv","plugin_committers-zodiac1978"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/publish-confirm_999999.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>As the Gutenberg editor introduced in WordPress 5.0 contains a similar functionality, the development of this plugin is discontinued.<\/strong>\nThe plugin only supports the classic editor (even when using WordPress 5.2 with the <em>Classic Editor<\/em> plugin).<\/p>\n\n<p>If you only use the Gutenberg editor, Publish Confirm won't have any effect. In this case you can uninstall the plugin.<\/p>\n\n<p>Accidentally published a WordPress post too early once too often, instead of saving it as a draft? This lightweight WordPress plugin implements an extra confirmation dialogue between your click on the <em>Publish<\/em> button and its actual processing. Simple and effective\u2014never publish by accident again!<\/p>\n\n<p>Once a post has been published, the confirmation dialogue will not appear anymore for that post.<\/p>\n\n<p><a href=\"http:\/\/coderisk.com\/wp\/plugin\/publish-confirm\/RIPS-MXdUlCHPLj\"><\/a><\/p>\n\n<h4>Credits<\/h4>\n\n<ul>\n<li>Author: <a href=\"https:\/\/sergejmueller.github.io\/\">Sergej M\u00fcller<\/a><\/li>\n<li>Maintainers: <a href=\"https:\/\/pluginkollektiv.org\/\">pluginkollektiv<\/a><\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Does *Publish Confirm* work for posts and pages?<\/dt>\n<dd><p>Yes, it does.<\/p><\/dd>\n<dt>And Custom Post Types?<\/dt>\n<dd><p>Yup.<\/p><\/dd>\n<dt>Can I limit\/extend the plugin\u2019s functionality for a custom selection of post types?<\/dt>\n<dd><p>Yes, you can, via PHP filter from a custom plugin or from your theme\u2019s functions.php. By default, the plugin will consider all <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/register_post_type\/\">registered post types<\/a>. As an example, you could only have a confirmation dialogue for public post types, excluding attachments, like this:<\/p>\n\n<pre>add_filter(\n    'publish_confirm_post_types',\n    function ( $post_types ) {\n\n        $post_types = get_post_types( array( 'public' =&gt; true ) );\n\n        if ( isset( $post_types[ 'attachment' ] ) ) {\n            unset( $post_types[ 'attachment' ] );\n        }\n\n        return $post_types;\n    }\n);<\/pre>\n\n<p>Or you can exclude your particular custom post type from the confirmation dialogue like so:<\/p>\n\n<pre>add_filter(\n    'publish_confirm_post_types',\n    function ( $post_types ) {\n\n        if ( isset( $post_types[ 'your_custom_post_type' ] ) ) {\n            unset( $post_types[ 'your_custom_post_type' ] );\n        }\n\n        return $post_types;\n    }\n);<\/pre><\/dd>\n<dt>Is there any way to change the default dialogue message into something else?<\/dt>\n<dd><p>The message text in the publishing dialogue can be changed via PHP filter from a custom plugin or your theme\u2019s functions.php:<\/p>\n\n<pre>add_filter(\n    'publish_confirm_message',\n    function( $msg ) {\n        return \"You\u2019re about to send this out into the world.\\nHave you added a kitten pic?\";\n    }\n);<\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.2 (2018-01-08)<\/h4>\n\n<ul>\n<li>Discontinued Publish Confirm<\/li>\n<\/ul>\n\n<h4>1.0.1 (2017-03-09)<\/h4>\n\n<ul>\n<li>Added Exception for 'Schedule' button.<\/li>\n<\/ul>\n\n<h4>1.0.0 (2016-12-16)<\/h4>\n\n<ul>\n<li>Usage of translations now only via <a href=\"https:\/\/translate.wordpress.org\/projects\/wp-plugins\/publish-confirm\">translate.wordpress.org\/projects\/wp-plugins\/publish-confirm<\/a>.<\/li>\n<li>Code cleanup in really small points.<\/li>\n<li>On the edge: First major version, usage of <a href=\"http:\/\/semver.org\/\">Semantic Versioning<\/a>.<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Code cleanup, props <a href=\"https:\/\/profiles.wordpress.org\/bueltge\/\">@bueltge<\/a><\/li>\n<li>Filter translatable strings<\/li>\n<li>Tested WordPress 4.6 compatibility<\/li>\n<li>standardized text domain to include a dash instead of an underscore<\/li>\n<li>added filter to manage which post types the plugin functionality will apply to<\/li>\n<li>updated <a href=\"https:\/\/gist.github.com\/glueckpress\/f058c0ab973d45a72720\">plugin authors<\/a><\/li>\n<\/ul>\n\n<h4>0.0.6<\/h4>\n\n<ul>\n<li>WordPress 4.2 support<\/li>\n<li>Russian translation<\/li>\n<\/ul>\n\n<h4>0.0.5<\/h4>\n\n<ul>\n<li>No confirmation dialogue for scheduled posts<\/li>\n<\/ul>\n\n<h4>0.0.4<\/h4>\n\n<ul>\n<li>Publish confirmation for post drafts<\/li>\n<\/ul>\n\n<h4>0.0.3<\/h4>\n\n<ul>\n<li><em>Publish Confirm<\/em> goes wordpress.org<\/li>\n<\/ul>","raw_excerpt":"Extra confirmation dialogue for the publish button to avoid accidental publishing.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/30200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=30200"}],"author":[{"embeddable":true,"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pluginkollektiv"}],"wp:attachment":[{"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=30200"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=30200"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=30200"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=30200"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=30200"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=30200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}