{"id":22195,"date":"2013-02-25T15:40:39","date_gmt":"2013-02-25T15:40:39","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/toggle-wpautop\/"},"modified":"2021-04-07T13:35:50","modified_gmt":"2021-04-07T13:35:50","slug":"toggle-wpautop","status":"publish","type":"plugin","link":"https:\/\/sr.wordpress.org\/plugins\/toggle-wpautop\/","author":4552240,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3.0","stable_tag":"1.3.0","tested":"5.7.15","requires":"3.0","requires_php":"5.6","requires_plugins":"","header_name":"Toggle wpautop","header_author":"Linchpin & Jonathan Desrosiers","header_description":"","assets_banners_color":"c86679","last_updated":"2021-04-07 13:35:50","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/plugins\/toggle-wpautop","header_author_uri":"http:\/\/shop.linchpin.com\/plugins\/toggle-wpautop?utm_source=toggle-wpautop&utm_medium=plugin-admin-page&utm_campaign=wp-plugin","rating":4.9,"author_block_rating":0,"active_installs":10000,"downloads":108501,"num_ratings":32,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"desrosj","date":"2013-03-05 20:40:39"},"1.1":{"tag":"1.1","author":"desrosj","date":"2013-03-22 19:08:32"},"1.1.1":{"tag":"1.1.1","author":"desrosj","date":"2014-01-16 18:31:33"},"1.1.2":{"tag":"1.1.2","author":"desrosj","date":"2015-01-27 18:49:54"},"1.2":{"tag":"1.2","author":"desrosj","date":"2016-03-28 19:41:16"},"1.2.1":{"tag":"1.2.1","author":"aware","date":"2016-04-04 03:11:15"},"1.2.2":{"tag":"1.2.2","author":"desrosj","date":"2016-04-04 13:39:57"},"1.2.4":{"tag":"1.2.4","author":"desrosj","date":"2017-02-02 03:19:56"},"1.2.5":{"tag":"1.2.5","author":"desrosj","date":"2019-02-05 22:52:11"},"1.3.0":{"tag":"1.3.0","author":"desrosj","date":"2021-04-07 13:35:50"}},"upgrade_notice":[],"ratings":{"1":1,"2":0,"3":0,"4":0,"5":31},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2227939,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2227939,"resolution":"256x256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":2227939,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2227939,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2227939,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.1.1","1.1.2","1.2","1.2.1","1.2.2","1.2.4","1.2.5","1.3.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2227939,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2227939,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"The disable wpautop checkbox on post edit screens.","2":"Settings-&gt;Writing page with plugin settings."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1332,1395,1975,3468,23796],"plugin_category":[46],"plugin_contributors":[79491,79490,79489],"plugin_business_model":[],"class_list":["post-22195","plugin","type-plugin","status-publish","hentry","plugin_tags-editor","plugin_tags-excerpt","plugin_tags-formatting","plugin_tags-post-content","plugin_tags-wpautop","plugin_category-editor-and-writing","plugin_contributors-aware","plugin_contributors-desrosj","plugin_contributors-linchpin_agency","plugin_committers-aware","plugin_committers-desrosj","plugin_committers-linchpin_agency","plugin_committers-maxinacube"],"banners":{"banner":"https:\/\/ps.w.org\/toggle-wpautop\/assets\/banner-772x250.png?rev=2227939","banner_2x":"https:\/\/ps.w.org\/toggle-wpautop\/assets\/banner-1544x500.png?rev=2227939","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/toggle-wpautop\/assets\/icon.svg?rev=2227939","icon":"https:\/\/ps.w.org\/toggle-wpautop\/assets\/icon.svg?rev=2227939","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/toggle-wpautop\/assets\/screenshot-1.png?rev=2227939","caption":"The disable wpautop checkbox on post edit screens."},{"src":"https:\/\/ps.w.org\/toggle-wpautop\/assets\/screenshot-2.png?rev=2227939","caption":"Settings-&gt;Writing page with plugin settings."}],"raw_content":"<!--section=description-->\n<p><strong>Note: This plugin does not support the block editor but should continue to work without issue when using it with custom post types and the <a href=\"https:\/\/wordpress.org\/plugins\/classic-editor\/\">Classic Editor Plugin<\/a>.<\/strong><\/p>\n\n<p>Before WordPress displays a post's content, the content gets passed through multiple filters to ensure that it safely appears how you enter it within the editor.<\/p>\n\n<p>One of these filters is <a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/wpautop\" title=\"wpautop\">wpautop<\/a>, which replaces double line breaks with <code>&lt;p&gt;<\/code> tags, and single line breaks with <code>&lt;br \/&gt;<\/code> tags. However, this filter sometimes causes issues when you are inputting a lot of HTML markup in the post editor.<\/p>\n\n<p>This plugin displays a checkbox in the publish meta box of the post edit screen that disables the <a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/wpautop\" title=\"wpautop\">wpautop<\/a> filter for that post.<\/p>\n\n<p>Also adds a 'wpautop', or 'no-wpautop' class to the post_class filter to help with CSS styling.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Proceed to the Settings-&gt;Writing and select which post types should have the option to disable the wpautop filter.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='can%20i%20disable%20wpautop%20completely%20with%20this%20plugin%3F'><h3>Can I disable wpautop completely with this plugin?<\/h3><\/dt>\n<dd><p>Right now, no. wpautop is a great filter, and in most cases you should not need it disabled globally. However, if there is enough demand for this feature we can add it.<\/p><\/dd>\n<dt id='can%20i%20set%20wpautop%20to%20default%20to%20%22off%22%20for%20new%20posts.'><h3>Can I set wpautop to default to \"off\" for new posts.<\/h3><\/dt>\n<dd><p>Yes.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Fixed minor sanitization of within the admin<\/li>\n<li>Fixed minor WPCS and PHPCS notices<\/li>\n<li>Updated plugin branding for .org<\/li>\n<li>Updated readme to link to the Classic Editor Plugin<\/li>\n<li>Updated deployment process to make releases easier<\/li>\n<\/ul>\n\n<h4>1.2.5<\/h4>\n\n<ul>\n<li>Fixing an issue where http:\/\/translate.wordpress.org did not detect the stable version correctly.<\/li>\n<\/ul>\n\n<h4>1.2.4<\/h4>\n\n<ul>\n<li>A few additional steps to make the plugin accessible to http:\/\/translate.wordpress.org.<\/li>\n<\/ul>\n\n<h4>1.2.3<\/h4>\n\n<ul>\n<li>Move translations to http:\/\/translate.wordpress.org.<\/li>\n<\/ul>\n\n<h4>1.2.2<\/h4>\n\n<ul>\n<li>Fixing PHP syntax error.<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Added ability for i18n using grunt-wp-i18n<\/li>\n<li>Added english default .pot<\/li>\n<li>Added minor security hardening so the class file would exit if called directly<\/li>\n<li>Updated code formatting to be more inline with WordPress coding standards<\/li>\n<li>Updated some method descriptions<\/li>\n<li>Updated plugin description to be more... descriptive.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Add a setting to disable wpautop automatically on new posts.<\/li>\n<li>Add filter (lp_wpautop_show_private_pt) for enabling the plugin on private post types.<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Fixing bug that was preventing other settings on the writing page from saving.<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Fixing bug where users upgrading from 1.0 would not receive the defaults for settings that were introduced in 1.1.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Adding the ability to choose which post types have the option to disable the wpautop filter on the Settings-&gt;Writing page.<\/li>\n<li>When activating the plugin for the first time, all post types are set to have the ability to disable the wpautop filter. This can be changed on the Settings-&gt;Writing page.<\/li>\n<li>Adding an uninstall hook to remove all traces of the plugin.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Hello world!<\/li>\n<\/ul>","raw_excerpt":"Easily disable the default wpautop filter on a post by post basis.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/22195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=22195"}],"author":[{"embeddable":true,"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/desrosj"}],"wp:attachment":[{"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=22195"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=22195"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=22195"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=22195"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=22195"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=22195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}