Linux 软件免费装
Banner图

Empty P Tag

开发者 husainahmedqureshi
更新时间 2026年8月9日 20:44
PHP版本: 7.2 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

editor excerpt formatting filter wpautop

下载

详情介绍:

Empty P Tag helps you keep clean front-end markup when WordPress, themes, or builders insert unwanted empty <p> / <br> tags that create awkward spacing. What it does Useful when Default settings match older versions of this plugin, so existing sites keep the same behavior after upgrading.

安装:

From the WordPress admin
  1. Go to Plugins → Add New.
  2. Search for Empty P Tag.
  3. Click Install Now, then Activate.
  4. Open Settings → Empty P Tag to review options.
Manual install
  1. Upload the empty-p-tag folder to /wp-content/plugins/.
  2. Activate Empty P Tag from the Plugins screen.
  3. Configure options under Settings → Empty P Tag.

升级注意事项:

5.0.0 Adds a settings page and safer, more configurable cleanup. Defaults keep previous behavior. See Release Notes for full details.

常见问题:

Will this change my posts immediately?

Yes on the front end. The plugin filters rendered content; it does not rewrite post content in the database.

Does this disable all paragraph formatting?

Only if those options stay enabled. You can turn off wpautop removal per area (content, excerpt, widgets) and still strip empty tags.

I upgraded and my layout looks different

Open Settings → Empty P Tag and restore the defaults, or disable only the option that conflicts with your theme.

Can developers customize cleanup?

Yes. Filters include haq_empty_p_tag_should_clean and haq_empty_p_tag_cleaned_content.

更新日志:

5.0.0 4.1 3.0 2.0.1 1.0.1 1.0.0