

Hello! Namaste!
Hello! I am a WordPress Developer living near Gujarat, India. When I am not writing code, you can find me exploring new places & nature or spending time with friend & family.
For adding validation for block setting field with custom block, We can handle that easily with below component Using above component, you can create one state for each block and maintain global class for root block container to indicate if block has error. Here I added Example, how we can use above component with block…
By default, Gutenberg Editor edit post request is not pass any custom param which we added with edit link. If you want to use that custom param in server side to perform some action, you need to pass that custom param manually. you can do that with following JS code.
Update block.js to something like: