Uses
Uses | Description |
---|---|
wp-includes/class-wp-post.php: WP_Post::get_instance() | Retrieve WP_Post instance. |
wp-includes/post.php: sanitize_post() | Sanitize every post field. |
{@Missing Summary}
(string) (Required) Filter.
(array|bool|object|WP_Post)
File: wp-includes/class-wp-post.php
public function filter( $filter ) { if ( $this->filter === $filter ) { return $this; } if ( 'raw' === $filter ) { return self::get_instance( $this->ID ); } return sanitize_post( $this, $filter ); }
Version | Description |
---|---|
3.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_post/filter