amp_is_dev_mode

amp_is_dev_mode()

Description #

Determine whether AMP dev mode is enabled.

When enabled, the <html> element will get the data-ampdevmode attribute and the plugin will add the same attribute to elements associated with the admin bar and other elements that are provided by the amp_dev_mode_element_xpaths filter.


Return #

(bool) Whether AMP dev mode is enabled.


Changelog #

Changelog
Version Description
1.3 Introduced.