WordPress at a glance
function is not described


AtomicBlock::render() public WC 1.0

Inject attributes and block name.

{} It's a method of the class: AtomicBlock{}

No Hooks.


String. Rendered block type output.


$AtomicBlock = new AtomicBlock();
$AtomicBlock->render( $attributes, $content );
Block attributes, or an instance of a WP_Block.
Default: an empty array
Block content.
Default: empty string

Code of AtomicBlock::render() WC 5.0.0

public function render( $attributes = [], $content = '' ) {
	$block_attributes = is_a( $attributes, '\WP_Block' ) ? $attributes->attributes : $attributes;
	return $this->inject_html_data_attributes( $content, $block_attributes );