| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Splide Carousel Block |
| 4 |
* Description: Carousel block |
| 5 |
* Requires at least: 6.5 |
| 6 |
* Requires PHP: 7.0 |
| 7 |
* Version: 1.6.0 |
| 8 |
* Author: CloudCatch LLC |
| 9 |
* Author URI: https://cloudcatch.io |
| 10 |
* License: MIT |
| 11 |
* Text Domain: splide-carousel |
| 12 |
* |
| 13 |
* @package CloudCatch\SplideCarousel |
| 14 |
*/ |
| 15 |
|
| 16 |
/** |
| 17 |
* Registers the block using the metadata loaded from the `block.json` file. |
| 18 |
* Behind the scenes, it registers also all assets so they can be enqueued |
| 19 |
* through the block editor in the corresponding context. |
| 20 |
* |
| 21 |
* @see https://developer.wordpress.org/reference/functions/register_block_type/ |
| 22 |
*/ |
| 23 |
function splide_carousel_block_init() { |
| 24 |
register_block_type( __DIR__ . '/build/carousel' ); |
| 25 |
register_block_type( __DIR__ . '/build/carousel-item' ); |
| 26 |
} |
| 27 |
add_action( 'init', 'splide_carousel_block_init' ); |
| 28 |
|