发布时间:2020-09-17
WordPress 常用函数 / balanceTags,
根据 forced 参数或者 use_balanceTags 选项平衡补齐标签。
‘use_balanceTags’ 选项或者 $forced 参数任何一个设置为 true,该函数就会补齐文本的标签。
调用 进行补全。
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>
<?php balanceTags( $text, $force ); ?>
$text
(string) (required) 将补齐标签的文本
Default: 无
$force
(boolean) (optional) 如果该参数为 true,则忽略use_balanceTags option 中的值。
Default: false
(string)
补齐之后的标签
Since: 0.71
wp-includes/formatting.php.
全站搜索