首页 WordPress函数大全 get_object_subtype()

get_object_subtype()

2020-05-01 / 4494阅 / 悠然

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

get_object_subtype( string $object_type, int $object_id )

Returns the object subtype for a given object ID of a specific type.

描述

参数

$object_type

(string)
(Required)
Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.

$object_id

(int)
(Required)
ID of the object to retrieve its subtype.

返回

(string) The object subtype or an empty string if unspecified subtype.

大家谈论
    我的见解