PluginProbe
Splide Carousel Block / trunk
Splide Carousel Block vtrunk
1.8.0 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5.0 1.6.0 1.7.0 1.7.1 1.7.2
splide-carousel / splide-carousel.php

splide-carousel.php in Splide Carousel Block trunk, at splide-carousel.php

28 lines 879 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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.8.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