# getwid/3.0.2/includes/blocks/content-slider.php

Getwid – Gutenberg Blocks, version 3.0.2. 28 lines.

- Page: https://pluginprobe.com/plugins/getwid/3.0.2/code/includes/blocks/content-slider.php
- Raw: https://pluginprobe.com/plugins/getwid/3.0.2/raw/includes/blocks/content-slider.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/content-slider.php#L10-L20`.

```php
<?php

namespace Getwid\Blocks;

class ContentSlider extends AbstractBlock {

	public function __construct() {

		parent::__construct( 'getwid/content-slider' );

		register_block_type(
			getwid_get_plugin_path( 'assets/blocks/content-slider/content-slider' )
		);

		register_block_type(
			getwid_get_plugin_path( 'assets/blocks/content-slider/content-slider-slide' )
		);
	}

	public function get_label() {
		return __( 'Content Slider', 'getwid' );
	}
}

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

```
