wp_check_term_meta_support_prefilter

Advertisement

Summery Summery

Aborts calls to term meta if it is not supported.

Syntax Syntax

wp_check_term_meta_support_prefilter( mixed $check )

Parameters Parameters

$check

(mixed) (Required) Skip-value for whether to proceed term meta function execution.

Return Return

(mixed) Original value of $check, or false if term meta is not supported.

Source Source

File: wp-includes/taxonomy.php

	if ( 'taxonomy' === $resource_type ) {
		$term = get_term( $object_id, $object_type );
		while ( ! is_wp_error( $term ) && ! empty( $term->parent ) && ! in_array( $term->parent, $ancestors, true ) ) {
			$ancestors[] = (int) $term->parent;
			$term        = get_term( $term->parent, $object_type );
		}
	} elseif ( 'post_type' === $resource_type ) {

Advertisement

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.