How do I pass author details such as name, bio and avatar to a block?
Use a server side rendered block, use
register_block_type to register the block in PHP, and specify a PHP function to render the blocks output using the
Then, in the blocks JS implementation, return
null in the save method. You can retrieve the current author from the WP Core data store for previewing purposes when inside the block editor, but it isn't necessary for it to work on the frontend