apply_filters( “get_object_subtype_{$object_type}”, string $object_subtype, int $object_id )

In this article

Filters the object subtype identifier for a non-standard object type.

Description

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_post
  • get_object_subtype_comment
  • get_object_subtype_term
  • get_object_subtype_user

Parameters

$object_subtypestring
Empty string to override.
$object_idint
ID of the object to get the subtype for.

Source

return apply_filters( "get_object_subtype_{$object_type}", $object_subtype, $object_id );

Changelog

VersionDescription
4.9.8Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.