# wordpress-seo/18.5.1/src/conditionals/get-request-conditional.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 18.5.1. 23 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/18.5.1/code/src/conditionals/get-request-conditional.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/18.5.1/raw/src/conditionals/get-request-conditional.php
- Modified: 2021-05-18T13:42:44+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/wordpress-seo/18.5.1/code/src/conditionals/get-request-conditional.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Conditionals;

/**
 * Conditional that is only met when the current request uses the GET method.
 */
class Get_Request_Conditional implements Conditional {

	/**
	 * Returns whether or not this conditional is met.
	 *
	 * @return bool Whether or not the conditional is met.
	 */
	public function is_met() {
		if ( isset( $_SERVER['REQUEST_METHOD'] ) && $_SERVER['REQUEST_METHOD'] === 'GET' ) {
			return true;
		}

		return false;
	}
}

```
