| 1 |
<?php |
| 2 |
namespace epiphyt\Embed_Privacy\integration; |
| 3 |
|
| 4 |
/** |
| 5 |
* AMP integration for Embed Privacy. |
| 6 |
* |
| 7 |
* @author Epiphyt |
| 8 |
* @license GPL2 |
| 9 |
* @package epiphyt\Embed_Privacy |
| 10 |
* @since 1.10.0 |
| 11 |
*/ |
| 12 |
final class Amp { |
| 13 |
/** |
| 14 |
* Determine whether this is an AMP response. |
| 15 |
* Note that this must only be called after the parse_query action. |
| 16 |
* |
| 17 |
* @return bool True if the current page is an AMP page, false otherwise |
| 18 |
*/ |
| 19 |
public static function is_amp() { |
| 20 |
/** @disregard P1010 */ |
| 21 |
return \function_exists( 'is_amp_endpoint' ) && \is_amp_endpoint(); |
| 22 |
} |
| 23 |
} |
| 24 |
|