Anh,
this isn't working. No matter what I do, can't get the $attributes['name'] because it's not in the attributes.
Using latest Meta Box AIO plugin.
had to make changes to vendor\meta-box\mb-blocks\src\MetaBox.php
public function render( $attributes = [] ) {
$this->set_block_data( $attributes );
$attributes[ 'name' ] = $this->id;
ob_start();
$post_id = get_the_ID();
$this->render_block( $attributes, false, $post_id );
return ob_get_clean();
}
to manually include name, then it worked.
Can you update the code so this works?