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.10
  • 6.8.11
  • 6.9.10
  • 7.0.7
  • 7.1.3

Present in every tracked release (6.7.10 to 7.1.3).

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.10 through 7.1.3.

  1. 6.7.10
  2. 6.8.11
  3. 6.9.10
  4. 7.0.7
  5. 7.1.3

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

About this page

Parsed data
Generated from the wordpress-develop 7.1.3 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.