首页 WordPress函数大全 do_shortcodes_in_html_tags()

do_shortcodes_in_html_tags()

2020-05-01 / 4533阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

do_shortcodes_in_html_tags( string $content, bool $ignore_html, array $tagnames )

Search>

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
    • Used By
  • User Contributed Notes

描述

Any [ or ] characters remaining inside elements will be HTML encoded to prevent interference with shortcodes that are outside the elements. Assumes $content processed by KSES already. Users with unfiltered_html capability may get unexpected output if angle braces are nested in tags.

参数

$content

(string)
(Required)
Content to search for shortcodes

$ignore_html

(bool)
(Required)
When true, all square braces inside elements will be encoded.

$tagnames

(array)
(Required)
List of shortcodes to find.

返回

(string) Content with shortcodes filtered out.

大家谈论
    我的见解