1. 首页
  2. WordPress 函数手册

clean_pre()

clean_pre( array|string $matches )

接受wpautop()中preg_replace_回调的matches数组或字符串。
Accepts matches array from preg_replace_callback in wpautop() or a string.

目录锚点:#说明#参数#返回#源码


说明(Description)

确保

..

HTML块的内容不会转换为段落或换行符。


参数(Parameters)

参数 类型 必填 说明
$matches (array | string) 必需 数组或字符串

返回(Return)

(string)没有段落/换行转换的前块。


源码(Source)

clean_pre() 函数的代码位于 wp-includes/formatting.php.
更新版本 源码位置 使用 被使用
3.4.0 wp-includes/deprecated.php:2958 0 1 function

clean_pre() 为WP2原创文章,链接:https://www.wp2.cn/functions/clean_pre/