unescape_invalid_shortcodes() - WordPress 函数参考中文文档

返回介绍

unescape_invalid_shortcodes()

发布于 2017-09-11 字数1271 浏览 835 评论 0

unescape_invalid_shortcodes( string $content )

Remove placeholders added by do_shortcodes_in_html_tags().


描述


参数

$content

(string)
(Required)
Content to search for placeholders.


返回值

(string) Content with placeholders removed.


源代码

File: wp-includes/shortcodes.php

function unescape_invalid_shortcodes( $content ) {
        // Clean up entire string, avoids re-parsing HTML.
        $trans = array( '[' => '[', ']' => ']' );
        $content = strtr( $content, $trans );

        return $content;
}

更新日志

Version 描述
4.2.3 Introduced.

相关函数

Used By

  • wp-includes/shortcodes.php:
    do_shortcode()
  • wp-includes/shortcodes.php:
    strip_shortcodes()

User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!