HEX
Server: nginx/1.26.1
System: Linux 850a3e23ecee 5.15.0-122-generic #132-Ubuntu SMP Thu Aug 29 13:45:52 UTC 2024 x86_64
User: (1000)
PHP: 8.2.27
Disabled: NONE
Upload Files
File: /var/www/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 );

	if ( flatsome_wp_version_check( '6.3' ) ) {
		$metadata['api_version'] = 3;
	}

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