WP_Tax_Query::sanitize_relation

SummerySummery

Sanitize a ‘relation’ operator.

Syntax

WP_Tax_Query::sanitize_relation( string $relation )

ParametersParameters

$relation

(string) (Required) Raw relation key from the query argument.

ReturnReturn

(string) Sanitized relation ('AND' or 'OR').

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.1.0 Introduced.
Scroll to Top