get_object_subtype_comment filter-hookWP 4.9.8

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

This is one of the variants of the dynamic hook get_object_subtype_(object_type)


add_filter( 'get_object_subtype_comment', 'wp_kama_get_object_subtype_comment_filter', 10, 2 );

 * Function for `get_object_subtype_comment` filter-hook.
 * @param string $object_subtype Empty string to override.
 * @param int    $object_id      ID of the object to get the subtype for.
 * @return string
function wp_kama_get_object_subtype_comment_filter( $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 1804
return apply_filters( "get_object_subtype_{$object_type}", $object_subtype, $object_id );

Where the hook is used in WordPress

Usage not found.