WP_Query::is_preview(): bool In this article Table of ContentsReturn Source Related Changelog ↑ Back to top Determines whether the query is for a post or page preview. Return bool Whether the query is for a post or page preview. Source public function is_preview() { return (bool) $this->is_preview; } View all references View on Trac View on GitHub Related Used byDescriptionis_preview()wp-includes/query.phpDetermines whether the query is for a post or page preview. Changelog VersionDescription3.1.0Introduced. User Contributed Notes You must log in before being able to contribute a note or feedback.
User Contributed Notes
You must log in before being able to contribute a note or feedback.