wppaste
WordPress

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

Since
4.9.8
Filters the object subtype identifier.

Description

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

Possible hook names include:

  • get_object_subtype_blog
  • get_object_subtype_post
  • get_object_subtype_comment
  • get_object_subtype_term
  • get_object_subtype_user

Compatibility

WordPress
since 4.9.8
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$object_subtypestring
Object subtype or empty string to override.
$object_idint
ID of the object to get the subtype for.

Where this hook fires · 1

  • wp-includes/meta.php:1858get_object_subtype()

Source code

	 *	 * @since 4.9.8	 *	 * @param string $object_subtype Object subtype or empty string to override.	 * @param int    $object_id      ID of the object to get the subtype for.	 */	return apply_filters( "get_object_subtype_{$object_type}", $object_subtype, $object_id );}

Changelog

Introduced in 4.9.8. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.