WordPress开发者和主题制作者的搜索引擎



get_object_subtype_{$object_type} ›

Since4.9.8
已弃用n/a
apply_filters( "get_object_subtype_{$object_type}", $object_subtype, $object_id )
参数: (2)
  • (string) $object_subtype Empty string to override.
    Required: Yes
  • (int) $object_id ID of the object to get the subtype for.
    Required: Yes
定义在:
文档:

Filters the object subtype identifier for a non standard object type.

The dynamic portion of the hook, $object_type, refers to the object type (post, comment, term, or user).





源码

return apply_filters( "get_object_subtype_{$object_type}", $object_subtype, $object_id );