# getwid/2.0.7/includes/blocks/ai-text.php

Getwid – Gutenberg Blocks, version 2.0.7. 26 lines.

- Page: https://pluginprobe.com/plugins/getwid/2.0.7/code/includes/blocks/ai-text.php
- Raw: https://pluginprobe.com/plugins/getwid/2.0.7/raw/includes/blocks/ai-text.php
- Modified: 2024-01-17T14:34:28+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/getwid/2.0.7/code/includes/blocks/ai-text.php#L10-L20`.

```php
<?php

namespace Getwid\Blocks;

class AIText extends \Getwid\Blocks\AbstractBlock {

	protected static $blockName = 'getwid/ai-text';

    public function __construct() {

        parent::__construct( self::$blockName );

		register_block_type(
			'getwid/ai-text'
		);
	}

	public function getLabel() {
		return __('AI Assistant', 'getwid');
	}
}

getwid()->blocksManager()->addBlock(
	new \Getwid\Blocks\AIText()
);

```
