/**
* Renders the block type output for given attributes.
*
* @since 5.0.0
*
* @param array $attributes Optional. Block attributes. Default empty array.
* @param string $content Optional. Block content. Default empty string.
* @return string Rendered block type output.
*/
public function render( $attributes = array
(),
$content = ''
) { if ( !
$this->
is_dynamic() ) { return '';
} $attributes =
$this->
prepare_attributes_for_render( $attributes );
return (string) call_user_func( $this->render_callback,
$attributes,
$content );
} /**
* Returns true if the block type is dynamic, or false otherwise. A dynamic
* block is one which defers its rendering to occur on-demand at runtime.
*
* @since 5.0.0
*
* @return bool Whether block type is dynamic.
*/