Gutenberg Block Get Author Details

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 render_callback option.

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

tech