What is the right sytax for dynamic blocks
-
Hello,
Im following a course on the wordpress learn site
im now here : https://learn.wordpress.org/lesson/the-save-function-and-dynamic-blocks/
but on the dynamic block part this is stated
function my_reading_list_reading_list_block_init() {
register_block_type( __DIR__ . ‘/build’, array( ‘render_callback’ => ‘my_reading_list_render_callback’ ) );
}but if I use this , the block cannot be found anymore
Does anyone know the right code so that the block works in the newest versions of wordpresssI also make a bug report on it but no respons at all for 5 weeks.
So I hope someone can and is willing to help me
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.