# wordpress-seo/28.3/src/ai-authorization/application/code-generator-interface.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.3/code/src/ai-authorization/application/code-generator-interface.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.3/raw/src/ai-authorization/application/code-generator-interface.php
- Modified: 2026-02-17T12:17:50+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/ai-authorization/application/code-generator-interface.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\AI_Authorization\Application;

/**
 * Interface Code_Generator_Interface.
 */
interface Code_Generator_Interface {

	/**
	 * Generates a unique code using the user's email and random data.
	 *
	 * @param string $user_email The user's email.
	 * @param int    $length     The length of the returned value.
	 *
	 * @return string The generated unique code.
	 */
	public function generate( string $user_email, int $length = 10 ): string;
}

```
