Filters the object subtype identifier for a non-standard object type.
The dynamic portion of the hook name, $object_type, refers to the meta object type (post, comment, term, user, or any other type with an associated meta table).
Possible hook names include:
get_object_subtype_postget_object_subtype_commentget_object_subtype_termget_object_subtype_user$object_subtypestring
$object_idint
return apply_filters( "get_object_subtype_{$object_type}", $object_subtype, $object_id );
| Version | Description |
|---|---|
| 4.9.8 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_object_subtype_object_type