# event-post/5.10.2/inc/blocks/eventslist.php

Event Post, version 5.10.2. 23 lines.

- Page: https://pluginprobe.com/plugins/event-post/5.10.2/code/inc/blocks/eventslist.php
- Raw: https://pluginprobe.com/plugins/event-post/5.10.2/raw/inc/blocks/eventslist.php
- Modified: 2025-05-21T10:43:36+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/event-post/5.10.2/code/inc/blocks/eventslist.php#L10-L20`.

```php
<?php
/**
 * Functions to register client-side assets (scripts and stylesheets) for the Gutenberg block.
 *
 * @package event-post
 * @version 5.10.2
 * @since   5.2
 * @see     https://wordpress.org/gutenberg/handbook/blocks/writing-your-first-block-type/#enqueuing-block-scripts
 */

 /**
 * Registers eventpost/list block
 */

function eventpost_list_block_init() {
	$dir_path = EventPost()->plugin_path;

	\register_block_type( $dir_path . '/build/list', array(
		'render_callback' => array(EventPost()->Shortcodes, 'shortcode_list'),
	));
}
add_action( 'wp_loaded', 'eventpost_list_block_init' );

```
