W3cubDocs

/WordPress

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

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

Description

The dynamic portion of the hook, $object_type, refers to the meta object type (post, comment, term, user, or any other type with an associated meta table).

Parameters

$object_subtype

(string) Empty string to override.

$object_id

(int) ID of the object to get the subtype for.

Source

File: wp-includes/meta.php

View on Trac

Changelog

Version Description
4.9.8 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_object_subtype_object_type