WordPress at Your Fingertips
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 meta object type (post, comment, term, user, or any other type with an associated meta table).


add_filter( 'get_object_subtype_(object_type)', 'filter_function_name_8794', 10, 2 );
function filter_function_name_8794( $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 1680
return apply_filters( "get_object_subtype_{$object_type}", $object_subtype, $object_id );

Where in WP core the hook is used WordPress

Usage not found.