发布时间:2020-09-17
WordPress 常用函数 / strip_shortcodes,
删除置顶内容中的所有短代码标签。
<?php strip_shortcodes( $content ); ?>
$content
(string) (required) 将要删除所有短代码标签的字符串。
Default: None
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>
(string)
删除了所有段代码标签的字符串。
Since: 2.5
wp-includes/shortcodes.php
全站搜索