is_preview
is_preview ( No parameters )
Returns:- (bool) Whether the query is for a post or page preview.
Defined at: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: —
Description
Determines whether the query is for a post or page preview.For more information on this and similar theme functions, check out
the {@link Conditional Tags} article in the Theme Developer Handbook.