Docs

evf_is_amp( bool $check_theme_support = true ): bool

Check whether the current page is in AMP mode or not.

Description

We need to check for specific functions, as there is no special AMP header.

Parameters

$check_theme_supportbooloptional
Whether theme support should be checked. Defaults to true.

Default:true

Return

bool

Changelog

VersionDescription
1.8.4Introduced.