跳到内容

Code and Core Remove Empty P Tags

v2.1.3

Code and core · 2025年11月21日 上架

Easily remove empty paragraph tags, non-breaking spaces, and extra line breaks. Now supports Frontend cleanup, Gutenberg, and ACF.

正在使用
50+
评分
暂无
累计下载
1,658
最近更新
2026年9月3日
需要 WordPress 5.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

The new Settings Page with Frontend/Backend toggle and Post Type selection.
The new Settings Page with Frontend/Backend toggle and Post Type selection.
Privacy & Telemetry settings for transparent data sharing.
Privacy & Telemetry settings for transparent data sharing.
Backend mode: The cleanup checkbox in the post editor sidebar.
Backend mode: The cleanup checkbox in the post editor sidebar.
Frontend mode: Clean output without touching the database.
Frontend mode: Clean output without touching the database.

The Code and Core Remove Empty P Tags is a powerful yet lightweight plugin that helps you eliminate unwanted spacing in your WordPress content. With version 2.0.0, we’ve introduced complete flexibility with two cleanup modes:

  1. Frontend Cleanup (Recommended): Automatically cleans content as it’s displayed on your site. This is non-destructive, meaning your database remains untouched while your visitors see perfectly clean content.
  2. Backend Cleanup (Editor-based): Adds a checkbox to your post/page editor. When checked, content is cleaned and saved directly to the database.

What it removes:

  • Empty paragraph tags.
  • Paragraphs containing only non-breaking spaces.
  • Empty paragraphs with line breaks.
  • Multiple consecutive line breaks (collapses them into one).

Key Features

  • Frontend & Backend modes: Choose between site-wide display cleanup or permanent database cleanup.
  • Block Editor (Gutenberg) Support: Fully compatible with the modern WordPress editor.
  • Classic Editor Support: Continued support for the traditional TinyMCE editor.
  • ACF Support: Clean up content in Advanced Custom Fields (WYSIWYG and Textarea).
  • Custom Post Types: Enable cleanup for any public post type on your site.
  • Exclude Post IDs: Easily skip cleanup on specific pages or posts.
  • Lightweight: Minimal impact on site performance.

Privacy Policy

This plugin does not collect, store, or process any personal or user-identifiable information without the site administrator’s explicit consent.

Telemetry Consent

To help improve plugin stability and ensure safe updates, you can opt-in to send minimal anonymous technical information (WordPress version, PHP version, theme locales) to our server.

No personal data, user emails, or IP addresses are collected. Opting in is 100% voluntary and can be disabled at any time from the settings page.

Plums

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

导航

说明

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

© 2026 Plums