HEX
Server: Apache/2
System: Linux chaudang 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: mgawa (1021)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: /home/mgawa/public_html/wp-content/themes/flatsome/inc/blocks/uxbuilder/index.php
<?php
/**
 * Server-side rendering of the `flatsome/uxbuilder` block.
 *
 * @package Flatsome
 */

/**
 * Registers the `flatsome/uxbuilder` component and block. This block doesn't
 * need a render function because it only contains raw HTML and shortcodes.
 */
function flatsome_register_uxbuilder_block() {
	$path     = __DIR__ . '/block.json';
	$metadata = json_decode( file_get_contents( $path ), true );

	register_block_type(
		$metadata['name'],
		$metadata
	);
}
add_action( 'init', 'flatsome_register_uxbuilder_block' );