get_object_subtype


get_object_subtype ( $object_type, $object_id )

Parameters:
  • (string) object_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.
  • (int) object_id ID of the object to retrieve its subtype.
Returns:
  • (string) The object subtype or an empty string if unspecified subtype.
Defined at:

Description

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

Related Functions

get_linkobjectsbyname, get_post_type, get_objects_in_term, wp_get_object_terms, get_post_types

Top Google Results

User discussions

wpseek mobile