wp_get_term_taxonomy_parent_id

SummerySummery

Returns the term’s parent’s term_ID.

Syntax

wp_get_term_taxonomy_parent_id( int $term_id, string $taxonomy )

ParametersParameters

$term_id

(int) (Required) Term ID.

$taxonomy

(string) (Required) Taxonomy name.

ReturnReturn

(int|false) False on error.

SourceSource

File: wp-includes/taxonomy.php


			

ChangelogChangelog

Changelog
Version Description
3.1.0 Introduced.
Scroll to Top