amp_to_amp_excluded_urls

apply_filters( 'amp_to_amp_excluded_urls',  string[] $excluded_urls )

Description #

Filters the list of URLs which are excluded from being included in AMP-to-AMP linking.

This only applies when the amp_to_amp_linking_enabled filter returns true, which it does by default in Transitional mode. This filter can be used to opt-in when in Reader mode. This does not apply in Standard mode. Only frontend URLs on the frontend need be excluded, as all other URLs are never made into AMP links.


Parameters #

$excluded_urls

(string[]) The URLs to exclude from having AMP-to-AMP links.



Changelog #

Changelog
Version Description
1.5.0 Introduced.