首页 WordPress函数大全 is_object_in_taxonomy()

is_object_in_taxonomy()

2020-05-02 / 4414阅 / 悠然

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

is_object_in_taxonomy( string $object_type, string $taxonomy )

Determine if the given object type is associated with the given taxonomy.

描述

参数

$object_type

(string)
(Required)
Object type string.

$taxonomy

(string)
(Required)
Single taxonomy name.

返回

(bool) True if object is associated with the taxonomy, otherwise false.

大家谈论
    我的见解