HTTP/2 200
server: nginx
date: Thu, 24 Jul 2025 19:34:59 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
WP_Date_Query::sanitize_relation() – Method | Developer.WordPress.org
WordPress Developer Resources
WP_Date_Query::sanitize_relation()
WP_Date_Query::sanitize_relation( string $relation ): string
Sanitizes a ‘relation’ operator.
$relation
stringrequiredRaw relation key from the query argument.
string Sanitized relation. Either 'AND'
or 'OR'
.
Version | Description |
---|
6.0.3 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.