apply_filters( 'amp_supportable_templates',  array $templates )

Description #

Filters list of supportable templates.

Each array item should have a key that corresponds to a template conditional function. If the key is such a function, then the key is used to evaluate whether the given template entry is a match. Otherwise, a supportable template item can include a callback value which is used instead. Each item needs a 'label' value. Additionally, if the supportable template is a subset of another condition (e.g. is_singular > is_single) then this relationship needs to be indicated via the 'parent' value.

Parameters #


(array) Supportable templates.

Changelog #

Version Description
1.0 Introduced.