WPDev.one
Core Function
View Source on Trac ↗

get_object_subtype()

get_object_subtype( mixed $object_type, mixed $object_id )

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

Parameters 2 required

Name / Type Description
string

$object_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.

Required
$object_id
int

ID of the object to retrieve its subtype.

Required

Return Value

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

Function Information

Since Version
4.9.8
Source File
wp-includes/meta.php
Advertisement