# getwid/3.0.2/includes/blocks/button-group.php

Getwid – Gutenberg Blocks, version 3.0.2. 24 lines.

- Page: https://pluginprobe.com/plugins/getwid/3.0.2/code/includes/blocks/button-group.php
- Raw: https://pluginprobe.com/plugins/getwid/3.0.2/raw/includes/blocks/button-group.php
- Modified: 2026-08-28T10:51:30+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/3.0.2/code/includes/blocks/button-group.php#L10-L20`.

```php
<?php

namespace Getwid\Blocks;

class ButtonGroup extends AbstractBlock {

	public function __construct() {

		parent::__construct( 'getwid/button-group' );

		register_block_type(
			getwid_get_plugin_path( 'assets/blocks/button-group' )
		);
	}

	public function get_label() {
		return __( 'Button Group', 'getwid' );
	}
}

getwid()->blocksManager()->addBlock(
	new ButtonGroup()
);

```
