首页 WordPress函数大全 has_shortcode()

has_shortcode()

2020-05-02 / 5398阅 / 悠然

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

has_shortcode( string $content, string $tag )

Whether the passed content contains the specified shortcode

描述

参数

$content

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

$tag

(string)
(Required)
Shortcode tag to check.

返回

(bool) Whether the passed content contains the given shortcode.

大家谈论
    我的见解