WPDev.one
Core Function
View Source on Trac ↗

is_preview()

is_preview( )

Determines whether the query is for a post or page preview.

Return Value

(bool)
Whether the query is for a post or page preview.

Function Information

Since Version
2.0.0
Source File
wp-includes/query.php
Advertisement