# event-post/5.11.1/inc/blocks/eventdetails.php

Event Post, version 5.11.1. 23 lines.

- Page: https://pluginprobe.com/plugins/event-post/5.11.1/code/inc/blocks/eventdetails.php
- Raw: https://pluginprobe.com/plugins/event-post/5.11.1/raw/inc/blocks/eventdetails.php
- Modified: 2026-04-29T08:32:12+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.11.1/code/inc/blocks/eventdetails.php#L10-L20`.

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

 /**
 * Registers eventpost/details block
 */

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

	\register_block_type( $dir_path . '/build/details', array(
		'render_callback' => array(EventPost()->Shortcodes, 'shortcode_single'),
	));
}
add_action( 'wp_loaded', 'eventdetails_block_init' );

```
