amp_dev_mode_enabled

apply_filters( 'amp_dev_mode_enabled',  bool $is_dev_mode_enabled )

Description #

Filters whether AMP mode is enabled.

When enabled, the data-ampdevmode attribute will be added to the document element and it will allow the attributes to be added to the admin bar. It will also add the attribute to all elements which match the queries for the expressions returned by the 'amp_dev_mode_element_xpaths' filter.


Parameters #

$is_dev_mode_enabled

(bool) Whether AMP dev mode is enabled.



Changelog #

Changelog
Version Description
1.3 Introduced.