WordPress at a glance
filter is not described

get_object_subtype_(object_type) filter-hook . WP 4.9.8

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).


add_filter( 'get_object_subtype_(object_type)', 'filter_function_name_864', 10, 2 );
function filter_function_name_864( $object_subtype, $object_id ){
	// filter...

	return $object_subtype;
Empty string to override.
ID of the object to get the subtype for.


Since 4.9.8 Introduced.

Where the hook is called

wp-includes/meta.php 1474
return apply_filters( "get_object_subtype_{$object_type}", $object_subtype, $object_id );

Where in WP core the hook is used

Usage not found!