Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



get_object_subtype_{$object_type} ›

Seit4.9.8
Veraltetn/v
apply_filters( "get_object_subtype_{$object_type}", $object_subtype, $object_id )
Parameter: (2)
  • (string) $object_subtype Empty string to override.
    Erforderlich: Ja
  • (int) $object_id ID of the object to get the subtype for.
    Erforderlich: Ja
Definiert in:
Codex:

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

The dynamic portion of the hook, $object_type, refers to the object type (post, comment, term, or user).





Quellcode

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