# wordpress-seo/27.8/src/conditionals/user-edit-conditional.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/27.8/code/src/conditionals/user-edit-conditional.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/27.8/raw/src/conditionals/user-edit-conditional.php
- Modified: 2024-04-16T09:09:26+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/27.8/code/src/conditionals/user-edit-conditional.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Conditionals;

/**
 * Conditional that is only met when current page is the Edit User page or the User's profile page.
 */
class User_Edit_Conditional implements Conditional {

	/**
	 * Returns whether or not this conditional is met.
	 *
	 * @return bool Whether or not the conditional is met.
	 */
	public function is_met() {
		global $pagenow;

		if ( $pagenow !== 'profile.php' && $pagenow !== 'user-edit.php' ) {
			return false;
		}

		return true;
	}
}

```
