WP_Block_Type::is_dynamicpublicWP 5.0.0

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.

Method of the class: WP_Block_Type{}

No Hooks.

Returns

true|false. Whether block type is dynamic.

Usage

$WP_Block_Type = new WP_Block_Type();
$WP_Block_Type->is_dynamic();

Changelog

Since 5.0.0 Introduced.

WP_Block_Type::is_dynamic() code WP 6.9.1

public function is_dynamic() {
	return is_callable( $this->render_callback );
}