get_object_subtype

SummerySummery

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

Syntax

get_object_subtype( string $object_type, int $object_id )

ParametersParameters

$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.

ReturnReturn

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

SourceSource

File: wp-includes/meta.php


			

ChangelogChangelog

Changelog
Version Description
4.9.8 Introduced.
Scroll to Top