# wordpress-seo/28.0/src/conditionals/myyoast-connection-conditional.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.0/code/src/conditionals/myyoast-connection-conditional.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.0/raw/src/conditionals/myyoast-connection-conditional.php
- Modified: 2026-05-12T12:03:36+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.0/code/src/conditionals/myyoast-connection-conditional.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Conditionals;

/**
 * Feature flag conditional for the MyYoast connection (OAuth client, WP-CLI
 * commands, and the key-rotation cron).
 *
 * Enable by defining `YOAST_SEO_MYYOAST_CONNECTION` as `true` in wp-config.php.
 */
class MyYoast_Connection_Conditional extends Feature_Flag_Conditional {

	/**
	 * Returns the name of the feature flag.
	 *
	 * @return string The name of the feature flag.
	 */
	protected function get_feature_flag() {
		return 'MYYOAST_CONNECTION';
	}
}

```
