$attributes Attributes prepared by the block builder (the stored ones are read). * @param string $content Inner content (none). * @param \WP_Block $block The block instance. * @return string */ public static function render_block( $attributes, $content, $block ) { unset( $attributes, $content ); if ( null === Form_Renderer::current_context() ) { return ''; } $stored = isset( $block->parsed_block['attrs'] ) && is_array( $block->parsed_block['attrs'] ) ? $block->parsed_block['attrs'] : []; $label = Field_Types::resolve( Field_Types::submit_attributes(), $stored )['label']; if ( 'Submit' === $label ) { $label = __( 'Submit', 'formwright' ); } return '