get_object_subtype


get_object_subtype ( $object_type, $object_id )

Parameters:
  • (string) $object_type Type of object to request metadata for. (e.g. comment, post, term, user)
  • (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, wp_get_object_terms, get_objects_in_term, get_post_types

Top Google Results

User discussions

wpseek mobile