Snippets: Add Custom Block to Post Content Builder Module

Important: Your custom callback function must be whitelisted or it will not work. This is for security reasons.

add_filter( 'vcex_post_content_blocks', function( $blocks ) {
	$blocks['my_custom_block_callback'] = 'My Custom Block Name';
	return $blocks;
} );

function my_custom_block_callback() {
	echo 'custom block output';


All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)