amp_dev_mode_element_xpaths

apply_filters( 'amp_dev_mode_element_xpaths',  string[] $element_xpaths )

Description #

Filters the XPath queries for elements that should be enabled for dev mode.

By supplying XPath queries to this filter, the data-ampdevmode attribute will automatically be added to the root HTML element as well as to any elements that match the expressions. The attribute is added to the elements prior to running any of the sanitizers.


Parameters #

$element_xpaths

(string[]) XPath element queries. Context is the root element.



Changelog #

Changelog
Version Description
1.3 Introduced.