amp_to_amp_linking_element_excluded

apply_filters( 'amp_to_amp_linking_element_excluded',  bool $excluded,  string $url,  string[] $rel,  DOMElement $element )

Description #

Filters whether AMP-to-AMP is excluded for an element.

The element may be either a link (a or area) or a form.


Parameters #

$excluded

(bool) Excluded. Default value is whether element already has a `noamphtml` link relation or the URL is among `excluded_urls`.

$url

(string) URL considered for exclusion.

$rel

(string[]) Link relations.

$element

(DOMElement) The element considered for excluding from AMP-to-AMP linking. May be instance of `a`, `area`, or `form`.