跳到内容

Toggle wpautop

v1.3.0

Jonathan Desrosiers · 2013年2月25日 上架

Easily disable the default wpautop filter on a post by post basis.

正在使用
9,000+
评分
4.9 / 5
累计下载
11 万
最近更新
2021年4月7日
32 条评价需要 WordPress 3.0+已测试到 5.7.22PHP 5.6+

截图

The disable wpautop checkbox on post edit screens.
The disable wpautop checkbox on post edit screens.
Settings->Writing page with plugin settings.
Settings->Writing page with plugin settings.

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 Classic Editor Plugin.

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.

One of these filters is wpautop, which replaces double line breaks with <p> tags, and single line breaks with <br /> tags. However, this filter sometimes causes issues when you are inputting a lot of HTML markup in the post editor.

This plugin displays a checkbox in the publish meta box of the post edit screen that disables the wpautop filter for that post.

Also adds a ‘wpautop’, or ‘no-wpautop’ class to the post_class filter to help with CSS styling.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums