is_preview


is_preview ( No parameters )

Returns:
  • (bool) Whether the query is for a post or page preview.
Defined at:

Description

Determines whether the query is for a post or page preview.For more information on this and similar theme functions, check out the [Conditional Tags](https://developer.wordpress.org/themes/basics/conditional-tags/) article in the Theme Developer Handbook.

Related Functions

post_preview, _set_preview, is_redirect, is_customize_preview, _show_post_preview

Top Google Results

User discussions

wpseek mobile