
如何使用GitHub进行WordPress开发
apply_shortcodes ( $content, $ignore_html = false )
apply_shortcodes: 这个函数用于解析和执行给定字符串中的短代码。它需要一个参数,也就是要解析的字符串。开发人员可以使用这个函数将动态内容添加到文章、页面和其他内容类型。
为短代码搜索内容,并通过其钩子过滤短代码。
这个函数是do_shortcode()的一个别名。
function apply_shortcodes( $content, $ignore_html = false ) { return do_shortcode( $content, $ignore_html ); }