HTTP/2 200
server: nginx
date: Mon, 13 Oct 2025 00:59:10 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
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 2
WP_Post::filter() – Method | Developer.WordPress.org
WP_Post::filter( string $filter ): WP_Post
$filter
stringrequiredFilter.
public function filter( $filter ) {
if ( $this->filter === $filter ) {
return $this;
}
if ( 'raw' === $filter ) {
return self::get_instance( $this->ID );
}
return sanitize_post( $this, $filter );
}
View all references View on Trac View on GitHub
Version | Description |
---|
3.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.