get_object_subtype_{$object_type} WordPress Filter Hook

This hook is used to get the subtype of an object. The object type can be a post type, taxonomy, or any other object type. The subtype is the specific type of object, such as a post type or a taxonomy.

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

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


Description

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

Possible hook names include:

  • get_object_subtype_post
  • get_object_subtype_comment
  • get_object_subtype_term
  • get_object_subtype_user

Top ↑

Parameters

$object_subtype

(string)Empty string to override.

$object_id

(int)ID of the object to get the subtype for.


Top ↑

Source

File: wp-includes/meta.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.9.8Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.