# wordpress-seo/28.3/src/conditionals/xmlrpc-conditional.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.3/code/src/conditionals/xmlrpc-conditional.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.3/raw/src/conditionals/xmlrpc-conditional.php
- Modified: 2023-05-23T11:53:56+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/28.3/code/src/conditionals/xmlrpc-conditional.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Conditionals;

/**
 * Conditional that is met when the current request is an XML-RPC request.
 */
class XMLRPC_Conditional implements Conditional {

	/**
	 * Returns whether the current request is an XML-RPC request.
	 *
	 * @return bool `true` when the current request is an XML-RPC request, `false` if not.
	 */
	public function is_met() {
		return ( \defined( 'XMLRPC_REQUEST' ) && \XMLRPC_REQUEST );
	}
}

```
