# wordpress-seo/trunk/src/user-meta/framework/additional-contactmethods/x.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/trunk/code/src/user-meta/framework/additional-contactmethods/x.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/trunk/raw/src/user-meta/framework/additional-contactmethods/x.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/trunk/code/src/user-meta/framework/additional-contactmethods/x.php#L10-L20`.

```php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
namespace Yoast\WP\SEO\User_Meta\Framework\Additional_Contactmethods;

use Yoast\WP\SEO\User_Meta\Domain\Additional_Contactmethod_Interface;

/**
 * The X contactmethod.
 */
class X implements Additional_Contactmethod_Interface {

	/**
	 * Returns the key of the X contactmethod.
	 *
	 * @return string The key of the X contactmethod.
	 */
	public function get_key(): string {
		return 'twitter';
	}

	/**
	 * Returns the label of the X field.
	 *
	 * @return string The label of the X field.
	 */
	public function get_label(): string {
		return \__( 'X username (without @)', 'wordpress-seo' );
	}
}

```
