WP_Block_Type::is_dynamic()
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.
Return
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() WP Block Type::is dynamic code WP 6.7.2
public function is_dynamic() { return is_callable( $this->render_callback ); }