amp_has_paired_endpoint

amp_has_paired_endpoint( string $url = '' )

Description #

Determine a given URL is for a paired AMP request.


Parameters #

$url

(Optional) URL to examine. If empty, will use the current URL.

Default value:''


Return #

(bool) True if the AMP query parameter is set with the required value, false if not.


Changelog #

Changelog
Version Description
2.1 Introduced.