wp_get_term_taxonomy_parent_id

Advertisement

Summery Summery

Returns the term’s parent’s term_ID.

Syntax Syntax

wp_get_term_taxonomy_parent_id( int $term_id, string $taxonomy )

Parameters Parameters

$term_id

(Required) Term ID.

$taxonomy

(Required) Taxonomy name.

Return Return

(int|false) False on error.

Source Source

File: wp-includes/taxonomy.php

	}
	if ( empty( $terms ) ) {
		return ( ! empty( $object_terms ) );
	}

	$terms = (array) $terms;

Advertisement

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.

Advertisement

Leave a Reply