# embed-privacy/1.10.4/inc/integration/class-amp.php

Embed Privacy, version 1.10.4. 24 lines.

- Page: https://pluginprobe.com/plugins/embed-privacy/1.10.4/code/inc/integration/class-amp.php
- Raw: https://pluginprobe.com/plugins/embed-privacy/1.10.4/raw/inc/integration/class-amp.php
- Modified: 2024-09-09T08:47:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/embed-privacy/1.10.4/code/inc/integration/class-amp.php#L10-L20`.

```php
<?php
namespace epiphyt\Embed_Privacy\integration;

/**
 * AMP integration for Embed Privacy.
 * 
 * @author	Epiphyt
 * @license	GPL2
 * @package	epiphyt\Embed_Privacy
 * @since	1.10.0
 */
final class Amp {
	/**
	 * Determine whether this is an AMP response.
	 * Note that this must only be called after the parse_query action.
	 * 
	 * @return	bool True if the current page is an AMP page, false otherwise
	 */
	public static function is_amp() {
		/** @disregard	P1010 */
		return \function_exists( 'is_amp_endpoint' ) && \is_amp_endpoint();
	}
}

```
