WP_Tax_Query::transform_query

SummerySummery

Transforms a single query, from one field to another.

Syntax

WP_Tax_Query::transform_query( array $query, string $resulting_field )

DescriptionDescription

Operates on the $query object by reference. In the case of error, $query is converted to a WP_Error object.

ParametersParameters

$query

(array) (Required) The single query. Passed by reference.

$resulting_field

(string) (Required) The resulting field. Accepts 'slug', 'name', 'term_taxonomy_id', or 'term_id'. Default 'term_id'.

SourceSource

File: wp-includes/class-wp-tax-query.php


			

ChangelogChangelog

Changelog
Version Description
3.2.0 Introduced.
Scroll to Top